prettier
Prettier is an opinionated code formatter
Last updated 10 days ago by ikatyang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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?

Travis CI Build Status CircleCI Build Status AppVeyor Build Status Codecov Coverage Status Blazing Fast
npm version weekly downloads from npm code style: prettier Chat on Gitter 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

  • 1.4.0-beta                                ...           beta (a year ago)
  • 1.15.2                                ...           latest (10 days ago)
  • 1.11.0-rc.1                                ...           next (9 months ago)

79 Versions

  • 1.15.2                                ...           10 days ago
  • 1.15.1                                ...           14 days ago
  • 1.15.0                                ...           14 days ago
  • 1.14.3                                ...           2 months ago
  • 1.14.2                                ...           3 months ago
  • 1.14.1                                ...           3 months ago
  • 1.14.0                                ...           4 months ago
  • 1.13.7                                ...           5 months ago
  • 1.13.6                                ...           5 months ago
  • 1.13.5                                ...           5 months ago
  • 1.13.4                                ...           6 months ago
  • 1.13.3                                ...           6 months ago
  • 1.13.2                                ...           6 months ago
  • 1.13.1                                ...           6 months ago
  • 1.13.0                                ...           6 months ago
  • 1.12.1                                ...           7 months ago
  • 1.12.0                                ...           7 months ago
  • 1.11.1                                ...           9 months ago
  • 1.11.0                                ...           9 months ago
  • 1.11.0-rc.1                                ...           9 months ago
  • 1.10.2                                ...           10 months ago
  • 1.10.1                                ...           10 months ago
  • 1.10.0                                ...           10 months ago
  • 1.9.2                                ...           a year ago
  • 1.9.1                                ...           a year ago
  • 1.9.0                                ...           a year ago
  • 1.8.2                                ...           a year ago
  • 1.8.1                                ...           a year ago
  • 1.8.0                                ...           a year ago
  • 1.7.4                                ...           a year ago
  • 1.7.3                                ...           a year ago
  • 1.7.2                                ...           a year ago
  • 1.7.1                                ...           a year ago
  • 1.7.0                                ...           a year ago
  • 1.6.1                                ...           a year ago
  • 1.6.0                                ...           a year ago
  • 1.6.0-beta2                                ...           a year ago
  • 1.5.3                                ...           a year ago
  • 1.5.2                                ...           a year ago
  • 1.5.1                                ...           a year ago
  • 1.5.0                                ...           a year ago
  • 1.4.4                                ...           a year ago
  • 1.4.3                                ...           a year ago
  • 1.4.2                                ...           a year ago
  • 1.4.1                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.4.0-beta                                ...           a year ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.22.0                                ...           2 years ago
  • 0.21.0                                ...           2 years ago
  • 0.20.0                                ...           2 years ago
  • 0.19.0                                ...           2 years ago
  • 0.18.0                                ...           2 years ago
  • 0.17.1                                ...           2 years ago
  • 0.17.0                                ...           2 years ago
  • 0.16.0                                ...           2 years ago
  • 0.15.0                                ...           2 years ago
  • 0.14.1                                ...           2 years ago
  • 0.14.0                                ...           2 years ago
  • 0.13.1                                ...           2 years ago
  • 0.11.0                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 99
This Week 34,332
This Month 224,979
Last Day 16,984
Last Week 98,232
Last Month 222,592
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1849)

Copyright 2014 - 2016 © taobao.org |