Prettier

JSON →
library 2.6.4 ·javascript
verified Jun 4, 2026

Prettier is an opinionated code formatter that supports JavaScript, TypeScript, CSS, HTML, Markdown, YAML, and many more languages via plugins. The current stable version is 2.6.4, with a major rewrite v3 (ESM-only) expected in 2023+. It enforces a consistent style by parsing code and reprinting it with its own rules, taking maximum line length into account. Key differentiators include being deterministic, having few configuration options, and integration with editors, pre-commit hooks, and CI. It is the most popular code formatter on npm with millions of weekly downloads. Release cadence is irregular, with minor versions every few months. Requires Node >=18.