# more-prettier

> CLI for running [prettier] with opinionated defaults.

Latest version **0.1.0** (published 2017-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install more-prettier
pnpm add more-prettier
yarn add more-prettier
bun add more-prettier
```

Provides the command `fix`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-05-05 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | fix, js, javascript, format, formatter, prettify, beautify, beautifier, prettier |

## Links

- npm: https://www.npmjs.com/package/more-prettier
- Repository: https://github.com/jonschlinkert/more-prettier
- Issues: https://github.com/jonschlinkert/more-prettier/issues
- npm.io page: https://npm.io/package/more-prettier

## Dependencies (7)

- [composer](https://npm.io/package/composer.md) ^0.14.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [prettier](https://npm.io/package/prettier.md) ^1.3.1
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [vinyl-fs](https://npm.io/package/vinyl-fs.md) ^2.4.4
- [object.omit](https://npm.io/package/object.omit.md) ^2.0.1
- [extend-shallow](https://npm.io/package/extend-shallow.md) ^2.0.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-05-05

## README

# more-prettier [![NPM version](https://img.shields.io/npm/v/more-prettier.svg?style=flat)](https://www.npmjs.com/package/more-prettier) [![NPM monthly downloads](https://img.shields.io/npm/dm/more-prettier.svg?style=flat)](https://npmjs.org/package/more-prettier) [![NPM total downloads](https://img.shields.io/npm/dt/more-prettier.svg?style=flat)](https://npmjs.org/package/more-prettier)

> CLI for running [prettier](https://github.com/prettier/prettier) with opinionated defaults.

## Install

Install globally with [npm](https://www.npmjs.com/)

```sh
$ npm install --global more-prettier
```

## Usage

```sh
# overwrites foo.js
$ fix foo.js
# write to a different destination file
$ fix foo.js bar.js
```

## Options

Defaults used:

```js
var defaults = {
  // Indent lines with tabs
  useTabs: false,

  // Fit code within this line limit
  printWidth: 80,

  // Number of spaces it should use per tab
  tabWidth: 2,

  // If true, will use single instead of double quotes
  singleQuote: true,

  // Controls the printing of trailing commas wherever possible. Valid options:
  // 'none' - No trailing commas
  // 'es5'  - Trailing commas where valid in ES5 (objects, arrays, etc)
  // 'all'  - Trailing commas wherever possible (function arguments)
  //
  // NOTE: Above is only available in 0.19.0 and above. Previously this was
  // a boolean argument.
  trailingComma: 'none',

  // Controls the printing of spaces inside object literals
  bracketSpacing: true,

  // If true, puts the `>` of a multi-line jsx element at the end of
  // the last line instead of being alone on the next line
  jsxBracketSameLine: false,

  // Which parser to use. Valid options are 'flow' and 'babylon'
  parser: 'babylon',

  // Whether to add a semicolon at the end of every line (semi: true),
  // or only at the beginning of lines that may introduce ASI failures (semi: false)
  semi: true
};
```

## About

### Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

### Building docs

_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_

To generate the readme, run the following command:

```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```

### Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

```sh
$ npm install && npm test
```

### Author

**Jon Schlinkert**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)

### License

Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).

***

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 05, 2017._

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