# prettier-m

> Prettier-M is a less opinionated code formatter

Latest version **0.2.0** (published 2022-07-27) · MIT license · 0 weekly downloads

## Install

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

Provides the command `prettier-m`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-07-27 |
| First published | 2022-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.13.0 |
| Dependencies | 0 |
| Unpacked size | 15 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | MarBos |
| Maintainers | marbos |

## Links

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

## Recent versions

- 0.2.0 (latest) — 2022-07-27
- 0.1.1 — 2022-07-25
- 0.1.0 — 2022-07-25
- 0.0.6 — 2022-07-23
- 0.0.5 — 2022-07-23
- 0.0.4 — 2022-07-23
- 0.0.3 — 2022-07-23
- 0.0.2 — 2022-07-21
- 0.0.1 — 2022-07-21

## README

# prettier-m - a less opinionated fork of Prettier

<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://github.com/prettier/prettier/actions?query=workflow%3AProd+branch%3Amain">
    <img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Prod?label=Prod&style=flat-square"></a>
  <a href="https://github.com/prettier/prettier/actions?query=workflow%3ADev+branch%3Amain">
    <img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Dev?label=Dev&style=flat-square"></a>
  <a href="https://github.com/prettier/prettier/actions?query=workflow%3ALint+branch%3Amain">
    <img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Lint?label=Lint&style=flat-square"></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-m">
  <img alt="npm version" src="https://img.shields.io/npm/v/prettier-m.svg?style=flat-square">
  </a>
</p>

## Intro

An unofficial fork of the Prettier code formatter, intended to provide some additional options to help more customize prettier options.

### Input

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

### Output

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

## CLI Usage

**Quick CLI usage:**

```sh
prettier <options> <file(s)>
```

## Additional prettier-m options

- `--array-bracket-spacing` (`arrayBracketSpacing: true`): Put spaces between array brackets (similar to the corresponding eslint option). Status: experimental, with limited testing.
- `--break-before-else` (`breakBeforeElse: true`): Always add a line break before else.
- `--break-long-method-chains` (`breakLongMethodChains: true`): Break method chains with more than 3 method calls, like Prettier 1.x.
- `--no-indent-chains` (`indentChains: false`): Disable indents at the start of chained calls.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

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