245 releases (93 breaking)

0.93.3 Nov 26, 2024
0.93.1 Oct 28, 2024
0.91.5 Jul 31, 2024
0.89.3 Feb 23, 2024
0.9.8 Mar 29, 2020

#22 in Value formatting

Download history 1575/week @ 2024-08-17 1911/week @ 2024-08-24 1911/week @ 2024-08-31 2142/week @ 2024-09-07 2268/week @ 2024-09-14 2506/week @ 2024-09-21 1987/week @ 2024-09-28 2507/week @ 2024-10-05 2589/week @ 2024-10-12 2446/week @ 2024-10-19 2824/week @ 2024-10-26 3041/week @ 2024-11-02 2460/week @ 2024-11-09 2217/week @ 2024-11-16 2340/week @ 2024-11-23 3608/week @ 2024-11-30

11,088 downloads per month
Used in 32 crates (22 directly)

MIT license

555KB
13K SLoC

dprint-plugin-typescript

CI

TypeScript formatting plugin for dprint.

This uses the swc parser for TypeScript written in Rust (it's super fast).

Install

See the GitHub releases.

Development

The tests are in the ./tests/specs folder. To run the tests, run cargo test.

Building Wasm file

You may wish to try out the plugin by building from source:

  1. Run cargo build --target wasm32-unknown-unknown --release --features "wasm"
  2. Reference the file at ./target/wasm32-unknown-unknown/release/dprint_plugin_typescript.wasm in a dprint configuration file.

Dependencies

~10–18MB
~263K SLoC