# prettier-linter-helpers

> Utilities to help expose prettier output in linting tools

Latest version **1.0.1** (published 2025-12-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install prettier-linter-helpers
pnpm add prettier-linter-helpers
yarn add prettier-linter-helpers
bun add prettier-linter-helpers
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2025-12-28 |
| First published | 2018-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 1 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Maintainers | bpscott, fisker |

## Links

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

## Dependencies (1)

- [fast-diff](https://npm.io/package/fast-diff.md) ^1.1.2

## Recent versions

- 1.0.1 (latest) — 2025-12-28
- 1.0.0 — 2018-10-01
- 0.1.0 — 2018-10-01

## README

# prettier-linter-helpers

Helper functions for exposing prettier changes within linting tools.

This package contains:

- `showInvisibles(string)` - Replace invisible characters with ones you can see for
  for easier diffing.
- `generateDifferences(source, prettierSource)` - Generate an array of
  differences between two strings.

## Inspiration

This code was extracted from [eslint-plugin-prettier v2.7.0](https://github.com/prettier/eslint-plugin-prettier/blob/9fac6b4039c1983b83073fa7af7864f0d7e1f2d3/eslint-plugin-prettier.js#L85-L215)

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