Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including git-commiters with all npm packages installed. Try it out:

var gitCommiters = require("git-commiters")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

git-commiters v0.1.1

Statistical summary of various infomation about git commiter.

git-commiters npm

Build Status Code Climate Test Coverage downloads license

A Node.js function module providing committers stats for your git repository.

Statistical summary of various infomation about git committer.

  • list of the committers
  • count of the committers
  • count of commits via committers
  • count of insertions via committers
  • count of deletions via committers

Usage

var gitCommiters = require('git-commiters');

gitCommiters('.', function(err, result){
  if (err)
    console.log(err);
  else
    console.log(result);
});

API

gitCommiters = require('git-commiters')
  • gitCommiters(options, callback): asynchronous get the stats infomation of the git committers
    • options (String|Object): the git's working directory if it's string.
      • cwd (String): the git's working directory.
      • gitDir (String): the git directory(.git).
      • revisionRange (String): Show only commits in the specified revision range. It defaults to HEAD. You can specify a branch too. More details to see gitrevisions
      • path (String): list commiters only for the specified path(file). defaults to all.

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free