dprint

Pluggable code formatting platform that runs multiple language formatters, including TypeScript, JSON, Markdown, TOML and wrappers for Prettier, Biome and Ruff.

dprint is a code formatting platform written in Rust. Rather than formatting one language, it hosts formatters as plugins and runs them from a single tool and configuration, so a project can format several file types in one pass.

The plugin list covers many languages. First-party plugins handle TypeScript/JavaScript, JSON/JSONC, Markdown, TOML, Dockerfile and Jupyter notebook code blocks. Wrapper plugins integrate existing tools: Prettier, Biome, Oxc, Bun, Roslyn (C#/VB), Mago (PHP), Ruff (Python), gofumpt (Go) and SwiftFormat. Other plugins cover CSS/SCSS/Sass/Less (Malva), HTML/Vue/Svelte/Astro and related templating languages (markup_fmt), GraphQL, YAML, LaTeX/BibTeX, R, Julia, Typst and Quarto/Pandoc. The exec plugin formats code by calling any CLI executable, which lets tools without a dedicated plugin be added.

dprint is distributed through npm, crates.io and Homebrew. The repository is a monorepo for the core, and the README points to dprint.dev for the overview, install instructions, plugin directory and an online playground. It suits developers and teams who want one formatter setup across a polyglot codebase.

Alternatives & related tools

add a badge to your README

Maintain dprint? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/dprint.svg)](https://www.trmn.sh/tools/dprint?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/dprint?utm_source=badge"><img src="https://www.trmn.sh/badge/dprint.svg" alt="Featured on trmn" height="20"></a>