lihai 8d6c751f49 feat: push il y a 2 ans
..
lib 8d6c751f49 feat: push il y a 2 ans
node_modules 8d6c751f49 feat: push il y a 2 ans
CHANGELOG.md 8d6c751f49 feat: push il y a 2 ans
README.md 8d6c751f49 feat: push il y a 2 ans
license.md 8d6c751f49 feat: push il y a 2 ans
package.json 8d6c751f49 feat: push il y a 2 ans

README.md

Read commit messages from a specified range or last edit

@commitlint/read

Getting started

npm install --save @commitlint/read

Example

const read = require('@commitlint/read');

// Read last edited commit message
read({edit: true}).then((messages) => console.log(messages));
// => ['I did something\n\n']

// Read from the third to second commit message from HEAD
read({from: 'HEAD~2', to: 'HEAD~1'}).then((messages) => console.log(messages));
// => ['Initial commit\n\n']

Consult docs/api for comprehensive documentation.