230 releases (90 breaking)

new 0.90.4 Apr 24, 2024
0.89.3 Feb 23, 2024
0.88.7 Dec 1, 2023
0.88.6 Nov 25, 2023
0.9.8 Mar 29, 2020

#342 in Parser implementations

Download history 1099/week @ 2024-01-03 1360/week @ 2024-01-10 908/week @ 2024-01-17 1431/week @ 2024-01-24 1281/week @ 2024-01-31 1385/week @ 2024-02-07 1497/week @ 2024-02-14 2162/week @ 2024-02-21 1985/week @ 2024-02-28 1617/week @ 2024-03-06 1293/week @ 2024-03-13 1251/week @ 2024-03-20 1842/week @ 2024-03-27 1715/week @ 2024-04-03 2678/week @ 2024-04-10 2100/week @ 2024-04-17

8,524 downloads per month
Used in 18 crates (16 directly)

MIT license

545KB
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

~9.5MB
~224K SLoC