# @textlint/source-code-fixer

> Apply @textlint/kernel lint result to text.

Latest version **15.8.0** (published 2026-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @textlint/source-code-fixer
pnpm add @textlint/source-code-fixer
yarn add @textlint/source-code-fixer
bun add @textlint/source-code-fixer
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 15.8.0 |
| Published | 2026-08-01 |
| First published | 2021-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3187 |
| Author | azu |
| Maintainers | azu, textlint-user |
| Keywords | textlint, kernel |

## Links

- npm: https://www.npmjs.com/package/@textlint/source-code-fixer
- Repository: https://github.com/textlint/textlint
- Homepage: https://github.com/textlint/textlint/tree/master/packages/@textlint/source-code-fixer/
- Issues: https://github.com/textlint/textlint/issues
- npm.io page: https://npm.io/package/@textlint/source-code-fixer

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.4.3
- [@textlint/types](https://npm.io/package/@textlint/types.md) 15.8.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 15.8.0 (latest) — 2026-08-01
- 13.4.2-next.0 (next) — 2024-02-02
- 12.0.0-beta.3 (beta) — 2021-05-24
- 15.7.1 — 2026-05-18
- 15.7.0 — 2026-05-14
- 15.6.1 — 2026-05-11
- 15.6.0 — 2026-04-26
- 15.5.4 — 2026-04-09
- 15.5.2 — 2026-02-21
- 15.5.1 — 2026-01-19
- 15.5.0 — 2025-12-07
- 15.4.1 — 2025-12-03
- 15.4.0 — 2025-11-17
- 15.3.0 — 2025-11-10
- 15.2.3 — 2025-10-11
- … 69 more at https://npm.io/package/@textlint/source-code-fixer/versions

## README

# @textlint/source-code-fixer

Apply @textlint/kernel lint result to text.

Almost user just use `@textlint/kernel`'s `fixText` API instead of This package.

This package provide primitive functions for @textlint/kernel.

## Install

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

    npm install @textlint/source-code-fixer

## Usage

```ts
import { TextlintKernel } from "@textlint/kernel";
import { applyFixesToText } from "@textlint/source-code-fixer";
const kernel = new TextlintKernel();
const text = "text";
const result = kernel.lintText(text, {
    ...
});
const fixedOutput = applyFixesToText(text, result.messages);
```

## Changelog

See [Releases page](https://github.com/textlint/textlint/releases).

## Running tests

Install devDependencies and Run `npm test`:

    npm test

## Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, [please create an issue](https://github.com/textlint/textlint/issues).

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

- azu: [GitHub](https://github.com/azu), [Twitter](https://twitter.com/azu_re)

## License

MIT © azu

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