Parse commit messages from a plain string or a stream using a simplified version of the the AngularJS style.
$ npm install --save git-commit-message-parser
message
can be a String
or a Stream
.
feat(user): allow a user to log in
Allow a user to log in with username and password
{
header: {
type: 'feat',
scope: 'user',
subject: 'allow a user to log in'
},
body: 'Allow a user to log in with username and password'
}
Stringifies the header back to its original format