#typescript #formatter #javascript

dprint-plugin-typescript

TypeScript and JavaScript code formatter

262 releases

Uses new Rust 2024

0.95.15 Feb 2, 2026
0.95.13 Nov 27, 2025
0.95.12 Oct 28, 2025
0.95.9 Jul 29, 2025
0.9.8 Mar 29, 2020

#84 in Template engine

Download history 7886/week @ 2025-10-26 6785/week @ 2025-11-02 5510/week @ 2025-11-09 4831/week @ 2025-11-16 7403/week @ 2025-11-23 5219/week @ 2025-11-30 6283/week @ 2025-12-07 6674/week @ 2025-12-14 2420/week @ 2025-12-21 3122/week @ 2025-12-28 4761/week @ 2026-01-04 6396/week @ 2026-01-11 7376/week @ 2026-01-18 6232/week @ 2026-01-25 9454/week @ 2026-02-01 9653/week @ 2026-02-08

33,278 downloads per month
Used in 35 crates (23 directly)

MIT license

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

~16–31MB
~354K SLoC