get the repo first commit information
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.editorconfig
.gitattributes
.gitignore
LICENSE
README.md
circle.yml
package.json
yarn.lock

README.md

the-first-commit

Greenkeeper badge

NPM version NPM downloads CircleCI codecov

Install

yarn add the-first-commit

Usage

const theFirstCommit = require('the-first-commit')

// cwd is the git repository path, if empty use current dir.

theFirstCommit(cwd)

result:

  { 
    hash: 'bdeb253d1679effeb028a813ef870a612ba91555',
    short: 'bdeb253',
    author: 'sinchang',
    email: 'sinchangwen@gmail.com',
    date: 'Sun Dec 31 23:37:17 2017 +0800',
    message: 'chore: init project' 
  }

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

the-first-commit © sinchang, Released under the MIT License.
Authored and maintained by sinchang with help from contributors (list).

sinchang.me · GitHub @sinchang · Twitter @sinchangwen