prettier
Prettier is an opinionated code formatter
Last updated 20 days ago by prettier-bot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install prettier 
SYNC missed versions from official npm registry.

Prettier Banner

Opinionated Code Formatter

JavaScript · TypeScript · Flow · JSX · JSON
CSS · SCSS · Less
HTML · Vue · Angular
GraphQL · Markdown · YAML
Your favorite language?

Github Actions Build Status Github Actions Build Status Github Actions Build Status Codecov Coverage Status Blazing Fast
npm version weekly downloads from npm code style: prettier Follow Prettier on Twitter

Intro

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

Input

foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());

Output

foo(
  reallyLongArg(),
  omgSoManyParameters(),
  IShouldRefactorThis(),
  isThereSeriouslyAnotherOne(),
);

Prettier can be run in your editor on-save, in a pre-commit hook, or in CI environments to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!


Documentation

Install · Options · CLI · API

Playground


Badge

Show the world you're using Prettiercode style: prettier

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Contributing

See CONTRIBUTING.md.

Current Tags

  • 3.4.2                                ...           latest (20 days ago)
  • 4.0.0-alpha.10                                ...           next (4 months ago)

167 Versions

  • 3.4.2                                ...           20 days ago
  • 3.4.1                                ...           a month ago
  • 3.4.0                                ...           a month ago
  • 4.0.0-alpha.10                                ...           4 months ago
  • 3.3.3                                ...           5 months ago
  • 4.0.0-alpha.9                                ...           6 months ago
  • 3.3.2                                ...           6 months ago
  • 3.3.1                                ...           7 months ago
  • 3.3.0                                ...           7 months ago
  • 3.2.5                                ...           a year ago
  • 3.2.4                                ...           a year ago
  • 3.2.3                                ...           a year ago
  • 3.2.2                                ...           a year ago
  • 3.2.1                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 4.0.0-alpha.8                                ...           a year ago
  • 4.0.0-alpha.7                                ...           a year ago
  • 4.0.0-alpha.6                                ...           a year ago
  • 4.0.0-alpha.5                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 4.0.0-alpha.4                                ...           a year ago
  • 4.0.0-alpha.3                                ...           a year ago
  • 4.0.0-alpha.2                                ...           a year ago
  • 4.0.0-alpha.1                                ...           a year ago
  • 4.0.0-alpha.0                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.3                                ...           a year ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 3.0.0-alpha.12                                ...           2 years ago
  • 3.0.0-alpha.11                                ...           2 years ago
  • 3.0.0-alpha.10                                ...           2 years ago
  • 3.0.0-alpha.9-for-vscode                                ...           2 years ago
  • 3.0.0-alpha.8-for-vscode                                ...           2 years ago
  • 2.8.8                                ...           2 years ago
  • 3.0.0-alpha.7-for-vscode [deprecated]           ...           2 years ago
  • 2.8.7                                ...           2 years ago
  • 2.8.6                                ...           2 years ago
  • 2.8.5                                ...           2 years ago
  • 3.0.0-alpha.6                                ...           2 years ago
  • 3.0.0-alpha.5                                ...           2 years ago
  • 2.8.4                                ...           2 years ago
  • 2.8.3                                ...           2 years ago
  • 2.8.2                                ...           2 years ago
  • 2.8.1                                ...           2 years ago
  • 2.8.0                                ...           2 years ago
  • 3.0.0-alpha.4                                ...           2 years ago
  • 3.0.0-alpha.3                                ...           2 years ago
  • 3.0.0-alpha.2                                ...           2 years ago
  • 3.0.0-alpha.1                                ...           2 years ago
  • 3.0.0-alpha.0                                ...           2 years ago
  • 2.7.1                                ...           3 years ago
  • 2.7.0                                ...           3 years ago
  • 2.6.2                                ...           3 years ago
  • 2.6.1                                ...           3 years ago
  • 2.6.0                                ...           3 years ago
  • 2.5.1                                ...           3 years ago
  • 2.5.0                                ...           3 years ago
  • 2.4.1                                ...           3 years ago
  • 2.4.0                                ...           3 years ago
  • 2.3.2                                ...           3 years ago
  • 2.3.1                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.2                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.5                                ...           5 years ago
  • 2.0.4                                ...           5 years ago
  • 2.0.3                                ...           5 years ago
  • 2.0.2                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.19.1                                ...           5 years ago
  • 1.19.0                                ...           5 years ago
  • 1.18.2                                ...           6 years ago
  • 1.18.1                                ...           6 years ago
  • 1.18.0                                ...           6 years ago
  • 1.17.1                                ...           6 years ago
  • 1.17.0                                ...           6 years ago
  • 1.16.4                                ...           6 years ago
  • 1.16.3                                ...           6 years ago
  • 1.16.2                                ...           6 years ago
  • 1.16.1                                ...           6 years ago
  • 1.16.0                                ...           6 years ago
  • 1.15.3                                ...           6 years ago
  • 1.15.2                                ...           6 years ago
  • 1.15.1                                ...           6 years ago
  • 1.15.0                                ...           6 years ago
  • 1.14.3                                ...           6 years ago
  • 1.14.2                                ...           6 years ago
  • 1.14.1                                ...           6 years ago
  • 1.14.0                                ...           6 years ago
  • 1.13.7                                ...           6 years ago
  • 1.13.6                                ...           6 years ago
  • 1.13.5                                ...           7 years ago
  • 1.13.4                                ...           7 years ago
  • 1.13.3                                ...           7 years ago
  • 1.13.2                                ...           7 years ago
  • 1.13.1                                ...           7 years ago
  • 1.13.0                                ...           7 years ago
  • 1.12.1                                ...           7 years ago
  • 1.12.0                                ...           7 years ago
  • 1.11.1                                ...           7 years ago
  • 1.11.0                                ...           7 years ago
  • 1.11.0-rc.1                                ...           7 years ago
  • 1.10.2                                ...           7 years ago
  • 1.10.1                                ...           7 years ago
  • 1.10.0                                ...           7 years ago
  • 1.9.2                                ...           7 years ago
  • 1.9.1                                ...           7 years ago
  • 1.9.0                                ...           7 years ago
  • 1.8.2                                ...           7 years ago
  • 1.8.1                                ...           7 years ago
  • 1.8.0                                ...           7 years ago
  • 1.7.4                                ...           7 years ago
  • 1.7.3                                ...           7 years ago
  • 1.7.2                                ...           7 years ago
  • 1.7.1                                ...           7 years ago
  • 1.7.0                                ...           7 years ago
  • 1.6.1                                ...           7 years ago
  • 1.6.0                                ...           7 years ago
  • 1.6.0-beta2                                ...           7 years ago
  • 1.5.3                                ...           7 years ago
  • 1.5.2                                ...           7 years ago
  • 1.5.1                                ...           7 years ago
  • 1.5.0                                ...           7 years ago
  • 1.4.4                                ...           8 years ago
  • 1.4.3                                ...           8 years ago
  • 1.4.2                                ...           8 years ago
  • 1.4.1                                ...           8 years ago
  • 1.4.0                                ...           8 years ago
  • 1.4.0-beta                                ...           8 years ago
  • 1.3.1                                ...           8 years ago
  • 1.3.0                                ...           8 years ago
  • 1.2.2                                ...           8 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.22.0                                ...           8 years ago
  • 0.21.0                                ...           8 years ago
  • 0.20.0                                ...           8 years ago
  • 0.19.0                                ...           8 years ago
  • 0.18.0                                ...           8 years ago
  • 0.17.1                                ...           8 years ago
  • 0.17.0                                ...           8 years ago
  • 0.16.0                                ...           8 years ago
  • 0.15.0                                ...           8 years ago
  • 0.14.1                                ...           8 years ago
  • 0.14.0                                ...           8 years ago
  • 0.13.1                                ...           8 years ago
  • 0.11.0                                ...           8 years ago
  • 0.0.10                                ...           8 years ago
  • 0.0.9                                ...           8 years ago
  • 0.0.8                                ...           8 years ago
  • 0.0.7                                ...           8 years ago
  • 0.0.6                                ...           8 years ago
  • 0.0.5                                ...           8 years ago
  • 0.0.4                                ...           8 years ago
  • 0.0.3                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Downloads
Total 161
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 9
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (106)

© 2010 - cnpmjs.org x YWFE | Home | YWFE