prettier

Install command:
brew install prettier

Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML

https://prettier.io/

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/prettier.json

Formula code: prettier.rb on GitHub

Bottle (binary package) installation support provided.

Current versions:

stable ✅ 3.10.1
head ⚡️ HEAD

Depends on:

node 26.13.1 Open-source, cross-platform JavaScript runtime environment

Binaries: prettier

GitHub Packages downloads:

Last 30 days19,426
Downloads766,497
Analytics install events (30 days)3,310
Downloads / install events (30 days)5.9×

Source: GitHub Packages, fetched 2026-11-17T00:56:44Z. Analytics dates: 2026-10-18 to 2026-11-17. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs3,3067,76134,992
Installs (--HEAD)41051
Installs on Request3,3037,75334,849
Installs on Request (--HEAD)41051
Build Errors0