JSPM

contributors-from-git

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 826
  • Score
    100M100P100Q103504F
  • License MIT

Get an array of contributors from a git working tree

Package Exports

  • contributors-from-git

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (contributors-from-git) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

contributors-from-git

Get an array of contributors from a git working tree.
Requires git 1.7+. Forked from git-contributors to reduce its scope (no output formatters, command-line interface, sorting or filtering).

npm Node version Build Status JavaScript Style Guide

Usage

npm install contributors-from-git
var contributors = require('contributors-from-git')

contributors('.', function (err, result) {
  if (err) throw err
  console.log(result)
})

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.