dprint
dprint.dev
2
Leaving SiteNav
External Link Disclaimer
You are about to visit dprint.dev. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
dprint is a pluggable and configurable code formatting platform written in Rust, designed as a faster and more secure alternative to traditional formatters. The core engine provides a unified CLI that orchestrates multiple language formatters through WebAssembly plugins, which run sandboxed without access to the network or file system. Official plugins include: TypeScript/JavaScript formatter (custom Rust implementation, 2-10x faster than Prettier with equivalent output), JSON formatter, Markdown formatter, TOML formatter, Malva (CSS/SCSS/Sass/Less), Dockerfile formatter, Ruff integration (Python), Roslyn integration (C#/Visual Basic), and Exec integration (wrapping external formatters like rustfmt, yapf, java, gofumpt). Additional community plugins include Biome, Oxc, Prettier, markup_fmt (HTML/Vue/Svelte/Astro), Pretty GraphQL, Pretty YAML, Mago (PHP), and Jupyter notebook formatting. Configuration is defined in a dprint.json or dprint.jsonc file with per-plugin options, include/exclude glob patterns, and incremental formatting. Key advantages: single binary distribution with no runtime dependencies, plugin loading from URLs or local paths (easy versioning and sharing), WASM sandbox security model, and configurable formatting rules that respect team preferences rather than imposing a single style. Licensed under MIT.
Statistics
2
Views
0
Clicks
0
Like
0
Dislike