Prettier

Opinionated code formatter

prettier
 
Open sourceCommand-line tool

Third-party software from public repositories. bestappfor.me does not host it, does not verify it and is not responsible for its use. Download only from the official source and check the license. Terms and disclaimer

Stars
52.4K
GitHub
Health
Solid
8 of 10 checks passed
License
MIT
Open source
Version
3.9.10
4 days ago
Category
Developer tools
Command-line tool
Language
JavaScript

About

Prettier rewrites your code in a single consistent style. It parses the file and prints it again using its own rules, wrapping lines where they exceed the maximum length. It handles JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML.

Run it on save in your editor, in a pre-commit hook or in CI. Because the tool decides the style, teams no longer need review comments about formatting. It is opinionated, so the tool makes the style choices for you.

Highlights

  • Formats JavaScript, TypeScript, CSS, HTML and more
  • Runs on save, in pre-commit hooks or in CI
  • Wraps code to the maximum line length

Who it's for

Good for teams that are tired of style debates in code reviews and want formatting handled automatically.

This description was written by our editors with automated assistance, not by the developer, and has not been reviewed yet.

Why it is here

  • Code changed today
  • New release 4 days ago

Official channels

Official channels only. We never host or repackage downloads.

Homebrew
macOS, Linux
3.9.10
brew install prettier

You might also like

See all