244 releases (93 breaking)

0.93.2 Nov 4, 2024
0.93.0 Sep 18, 2024
0.91.5 Jul 31, 2024
0.89.3 Feb 23, 2024
0.9.8 Mar 29, 2020

#25 in Value formatting

Download history 1489/week @ 2024-08-04 1434/week @ 2024-08-11 1654/week @ 2024-08-18 1904/week @ 2024-08-25 1928/week @ 2024-09-01 2105/week @ 2024-09-08 2260/week @ 2024-09-15 2511/week @ 2024-09-22 2017/week @ 2024-09-29 2697/week @ 2024-10-06 2388/week @ 2024-10-13 2525/week @ 2024-10-20 2828/week @ 2024-10-27 3054/week @ 2024-11-03 2401/week @ 2024-11-10 2018/week @ 2024-11-17

10,494 downloads per month
Used in 31 crates (21 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

~11–19MB
~283K SLoC