# @miksu/prettier

> Prettier is an opinionated code formatter

Latest version **1.18.6** (published 2020-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @miksu/prettier
pnpm add @miksu/prettier
yarn add @miksu/prettier
bun add @miksu/prettier
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.18.6 |
| Published | 2020-11-30 |
| First published | 2019-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 48 |
| Unpacked size | 544.2 KB |
| Known vulnerabilities | 0 (+10 in 6 direct dependencies) |
| Install scripts | no |
| GitHub stars | 52406 |
| Author | James Long |
| Maintainers | miksu |

## Links

- npm: https://www.npmjs.com/package/@miksu/prettier
- Repository: https://github.com/prettier/prettier
- Homepage: https://prettier.io
- Issues: https://github.com/prettier/prettier/issues
- npm.io page: https://npm.io/package/@miksu/prettier

## Dependencies (48)

- [mem](https://npm.io/package/mem.md) 4.0.0
- [diff](https://npm.io/package/diff.md) 3.5.0
- [chalk](https://npm.io/package/chalk.md) 2.1.0
- [is-ci](https://npm.io/package/is-ci.md) 2.0.0
- [leven](https://npm.io/package/leven.md) 2.1.0
- [dedent](https://npm.io/package/dedent.md) 0.7.0
- [globby](https://npm.io/package/globby.md) 6.1.0
- [ignore](https://npm.io/package/ignore.md) 4.0.6
- [semver](https://npm.io/package/semver.md) 5.4.1
- [vnopts](https://npm.io/package/vnopts.md) 1.0.2
- [dashify](https://npm.io/package/dashify.md) 0.2.2
- [esutils](https://npm.io/package/esutils.md) 2.0.2
- [resolve](https://npm.io/package/resolve.md) 1.5.0
- [unified](https://npm.io/package/unified.md) 6.1.6
- [minimist](https://npm.io/package/minimist.md) 1.2.0
- [camelcase](https://npm.io/package/camelcase.md) 4.1.0
- [minimatch](https://npm.io/package/minimatch.md) 3.0.4
- [get-stream](https://npm.io/package/get-stream.md) 4.1.0
- [@iarna/toml](https://npm.io/package/@iarna/toml.md) 2.2.3
- [html-styles](https://npm.io/package/html-styles.md) 1.0.0
- [n-readlines](https://npm.io/package/n-readlines.md) 1.0.0
- [regexp-util](https://npm.io/package/regexp-util.md) 1.2.2
- [remark-math](https://npm.io/package/remark-math.md) 1.0.4
- [string-width](https://npm.io/package/string-width.md) 3.0.0
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.6.0
- [jest-docblock](https://npm.io/package/jest-docblock.md) 23.2.0
- [lodash.uniqby](https://npm.io/package/lodash.uniqby.md) 4.7.0
- [find-cache-dir](https://npm.io/package/find-cache-dir.md) 1.0.0
- [html-tag-names](https://npm.io/package/html-tag-names.md) 1.1.2
- [normalize-path](https://npm.io/package/normalize-path.md) 3.0.0
- [find-parent-dir](https://npm.io/package/find-parent-dir.md) 0.3.0
- [@babel/code-frame](https://npm.io/package/@babel/code-frame.md) 7.5.5
- [find-project-root](https://npm.io/package/find-project-root.md) 1.1.1
- [lines-and-columns](https://npm.io/package/lines-and-columns.md) 1.1.6
- [write-file-atomic](https://npm.io/package/write-file-atomic.md) 2.3.0
- [yaml-unist-parser](https://npm.io/package/yaml-unist-parser.md) 1.0.0
- [linguist-languages](https://npm.io/package/linguist-languages.md) 7.5.1
- [@fisker/parse-srcset](https://npm.io/package/@fisker/parse-srcset.md) 1.0.2
- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) 1.0.5
- [angular-estree-parser](https://npm.io/package/angular-estree-parser.md) 1.1.5
- [json-stable-stringify](https://npm.io/package/json-stable-stringify.md) 1.0.1
- [postcss-values-parser](https://npm.io/package/postcss-values-parser.md) 1.5.0
- [@babel/runtime-corejs2](https://npm.io/package/@babel/runtime-corejs2.md) 7.6.0
- [html-element-attributes](https://npm.io/package/html-element-attributes.md) 2.0.0
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) 2.2.3
- [editorconfig-to-prettier](https://npm.io/package/editorconfig-to-prettier.md) 0.1.1
- [postcss-media-query-parser](https://npm.io/package/postcss-media-query-parser.md) 0.2.3
- [@typescript-eslint/typescript-estree](https://npm.io/package/@typescript-eslint/typescript-estree.md) 1.11.0

## Recent versions

- 1.18.6 (latest) — 2020-11-30
- 1.18.5 — 2019-12-07
- 1.18.4 — 2019-12-07
- 1.18.3 — 2019-11-04
- 1.18.2 — 2019-09-19
- 1.18.1 — 2019-09-17

## README

![Prettier Banner](https://raw.githubusercontent.com/prettier/prettier-logo/master/images/prettier-banner-light.png)

<h2 align="center">Opinionated Code Formatter</h2>

<p align="center">
  <em>
    JavaScript
    · TypeScript
    · Flow
    · JSX
    · JSON
  </em>
  <br />
  <em>
    CSS
    · SCSS
    · Less
  </em>
  <br />
  <em>
    HTML
    · Vue
    · Angular
  </em>
  <br />
  <em>
    GraphQL
    · Markdown
    · YAML
  </em>
  <br />
  <em>
    <a href="https://prettier.io/docs/en/plugins.html">
      Your favorite language?
    </a>
  </em>
</p>

<p align="center">
  <a href="https://dev.azure.com/prettier/prettier/_build/latest?definitionId=5">
    <img alt="Azure Pipelines Build Status" src="https://img.shields.io/azure-devops/build/prettier/79013671-677c-4846-a6d8-3050d40e21c0/5.svg?style=flat-square&label=build&branchName=master"></a>
  <a href="https://codecov.io/gh/prettier/prettier">
    <img alt="Codecov Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a>
  <a href="https://twitter.com/acdlite/status/974390255393505280">
    <img alt="Blazing Fast" src="https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-brightgreen.svg?style=flat-square"></a>
  <br/>
  <a href="https://www.npmjs.com/package/prettier">
    <img alt="npm version" src="https://img.shields.io/npm/v/prettier.svg?style=flat-square"></a>
  <a href="https://www.npmjs.com/package/prettier">
    <img alt="weekly downloads from npm" src="https://img.shields.io/npm/dw/prettier.svg?style=flat-square"></a>
  <a href="#badge">
    <img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a>
  <a href="https://gitter.im/jlongster/prettier">
    <img alt="Chat on Gitter" src="https://img.shields.io/gitter/room/jlongster/prettier.svg?style=flat-square"></a>
  <a href="https://twitter.com/PrettierCode">
    <img alt="Follow Prettier on Twitter" src="https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier&style=flat-square"></a>
</p>

## 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

<!-- prettier-ignore -->
```js
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
```

### Output

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

Prettier can be run [in your editor](http://prettier.io/docs/en/editors.html) on-save, in a [pre-commit hook](https://prettier.io/docs/en/precommit.html), or in [CI environments](https://prettier.io/docs/en/cli.html#list-different) 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](https://prettier.io/docs/en/)**

<!-- prettier-ignore -->
[Install](https://prettier.io/docs/en/install.html) ·
[Options](https://prettier.io/docs/en/options.html) ·
[CLI](https://prettier.io/docs/en/cli.html) ·
[API](https://prettier.io/docs/en/api.html)

**[Playground](https://prettier.io/playground/)**

---

## Badge

Show the world you're using _Prettier_ → [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

```md
[![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](CONTRIBUTING.md).

---
_Source: https://npm.io/package/@miksu/prettier · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
