UNPKG

589 BMarkdownView Raw
1> Parse commit messages to structured data
2
3# @commitlint/parse
4
5## Install
6
7```
8npm install --save @commitlint/parse
9```
10
11## Use
12
13```js
14const parse = require('@commitlint/parse');
15```
16
17## API
18
19### parse(message: string, parser: Function, parserOpts: Object)
20
21- **message**: Commit message to parser
22- **parser**: Sync parser function to use. Defaults to `sync` of `conventional-commits-parser`
23- **parserOpts**: Options to pass to `parser`
24 ```
25 {
26 commentChar: null, // character indicating comment lines
27 issuePrefixes: ['#'] // prefix characters for issue references
28 }
29 ```
30
\No newline at end of file