contributors-from-git
Get an array of contributors from a git working tree.
Requires git 1.7+. Forked fromgit-contributors
to reduce its scope (no output formatters, command-line interface, sorting or filtering).
Usage
npm install contributors-from-git
var contributors =
This yields an array of contributors:
commits: 40 name: 'Maja' email: 'maja@hive' commits: 10 name: 'Flip' email: 'flip@meadow' commits: 80 name: 'Willi' email: 'willi@sunflower'
API
contributors(dir, callback)
The dir
argument must resolve to a git working tree.
License
MIT © 2019 Vincent Weevers, © 2014 David Linse.