npm.io
1.0.0 • Published 11 years ago

git-commit-parser

Licence
MIT
Version
1.0.0
Deps
1
Vulns
0
Weekly
0
Stars
8

git-commit-parser Build Status

Parse commit messages using a simplified version of the the AngularJS style.

Install

$ npm install --save git-commit-parser

API

parser.parse(message) -> Object
Input
feat(user): allow a user to log in

Allow a user to log in with username and password
Output:
{
  header: {
    type: 'feat',
    scope: 'user',
    subject: 'allow a user to log in'
  },
  body: 'Allow a user to log in with username and password'
}
header.toString() -> String

Stringifies the header back to its original format

Keywords