# c-prettier

> C-prettier is Prettier, a bit less opinionated.

Latest version **1.12.1** (published 2018-05-17) · MIT license · 0 weekly downloads

## Install

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

Provides the command `prettier`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.12.1 |
| Published | 2018-05-17 |
| First published | 2018-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Unpacked size | 7.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Long |
| Maintainers | hugo42 |

## Links

- npm: https://www.npmjs.com/package/c-prettier
- Repository: https://github.com/codeheroics/c-prettier
- Homepage: https://github.com/codeheroics/c-prettier#readme
- Issues: https://github.com/codeheroics/c-prettier/issues
- npm.io page: https://npm.io/package/c-prettier

## Recent versions

- 1.12.1 (latest) — 2018-05-17

## README

# C-Prettier

This is [Prettier](https://github.com/prettier/prettier), with an additional option `jsxMaxPropsPerLine` which objective is to allow users to specify the maximum number of props they want on a single line in a JSX element.

eg.

```js
<AmazingElement width={100} height={100} />
```

with option `jsxMaxPropsPerLine` set to `1`:


```js
<AmazingElement
  width={100}
  height={100}
/>
```

See [Prettier Issue #3101](https://github.com/prettier/prettier/issues/3101)

To use the option, add it to your `.prettierrc` (or equivalent) config file.

This is just a very simple fork aiming to be a drop-in replacmeent, so just replace `prettier` by `c-prettier` in your `package.json`, `npm install`, and you're good to go.

You should not have Prettier and C-Prettier installed together, as something will probably break somewhere, since the `bin` file is still named `prettier` to ensure all integrations (plugins for code editors for example) work.

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