# @commitlint/parse

> Lint your commit messages

Latest version **21.2.2** (published 2026-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @commitlint/parse
pnpm add @commitlint/parse
yarn add @commitlint/parse
bun add @commitlint/parse
```

## Health

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

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 21.2.2 |
| Published | 2026-08-13 |
| First published | 2017-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.12.0 |
| Dependencies | 3 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18736 |
| Author | Mario Nebl |
| Maintainers | marionebl, martinhelmut, escapedcat, bycedric |
| Keywords | commitlint, conventional-changelog, core, library |

## Links

- npm: https://www.npmjs.com/package/@commitlint/parse
- Repository: https://github.com/conventional-changelog/commitlint
- Homepage: https://commitlint.js.org/
- Issues: https://github.com/conventional-changelog/commitlint/issues
- npm.io page: https://npm.io/package/@commitlint/parse

## Dependencies (3)

- [@commitlint/types](https://npm.io/package/@commitlint/types.md) ^21.2.0
- [conventional-commits-parser](https://npm.io/package/conventional-commits-parser.md) ^7.0.0
- [conventional-changelog-angular](https://npm.io/package/conventional-changelog-angular.md) ^9.0.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

- 21.2.2 (latest) — 2026-08-13
- 21.2.0 — 2026-06-30
- 21.1.0 — 2026-06-23
- 21.0.2 — 2026-05-29
- 21.0.1 — 2026-05-12
- 21.0.0 — 2026-05-08
- 20.5.0 — 2026-03-15
- 20.4.4 — 2026-03-12
- 20.4.3 — 2026-03-03
- 20.4.1 — 2026-02-02
- 20.4.0 — 2026-01-30
- 20.3.1 — 2026-01-08
- 20.2.0 — 2025-12-05
- 20.0.0 — 2025-09-25
- 19.8.1 — 2025-05-08
- … 64 more at https://npm.io/package/@commitlint/parse/versions

## README

> Parse commit messages to structured data

# @commitlint/parse

## Install

```
npm install --save @commitlint/parse
```

## Use

```js
const parse = require("@commitlint/parse");
```

## API

### parse(message: string, parser: Function, parserOpts: Object)

- **message**: Commit message to parser
- **parser**: Sync parser function to use. Defaults to `sync` of `conventional-commits-parser`
- **parserOpts**: Options to pass to `parser`
  ```
  {
    commentChar: null, // character indicating comment lines
    issuePrefixes: ['#'] // prefix characters for issue references
  }
  ```

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