# Prettier

> An opinionated code formatter that reprints your code in one consistent style

Source: https://talira.ai/catalog/prettier-wqw3mymz
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / formatting](https://talira.ai/categories/developer-tools/formatting), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: cli
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes

Prettier is an opinionated code formatter for JavaScript, [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md), Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML. It reprints code from its syntax tree in one consistent style with very few options, so teams stop debating formatting in reviews. It runs on save in editors, in [pre-commit](https://talira.ai/catalog/pre-commit-ymy35rpp.md) hooks and as a CI check. MIT licensed.

## Links

- Website: https://prettier.io
- GitHub: https://github.com/prettier/prettier
- Docs: https://prettier.io/docs/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/prettier>[^1]

## Problems it solves

- code reviews keep turning into arguments about formatting
- format JavaScript and CSS automatically when I save
- make every file in the repo use the same style without configuring a hundred rules
- fail CI when a file isn't formatted
- format Markdown and YAML files consistently too

## Features

- opinionated formatting with few options
- many languages
- editor integrations
- --check for CI
- plugins for more languages

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.76 out of 1.
Signals: maintenance 1.00, adoption 0.94, momentum 0.80, community 1.00, backing 0.00, extensibility 0.40.

- last commit 10 days ago
- 388 commits in the last 90 days
- latest release 3.10.1 12 days ago
- 52.4k GitHub stars
- 871 contributors
- accepts sponsorship (Github, Open Collective, Thanks Dev)
- has a plugin system

## Alternatives

- [Biome](https://talira.ai/catalog/biome-0x0507a7.md): One fast toolchain that formats and lints JavaScript, TypeScript, JSON, CSS, HTML, GraphQL, YAML and Markdown.
- [Oxc](https://talira.ai/catalog/oxc-x57vf6nn.md): The JavaScript Oxidation Compiler: high-performance JavaScript and TypeScript tools in Rust

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
