Socket
Book a DemoInstallSign in
Socket

git-committers

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-committers

Get the committers from a git repository with some sorting and formatting options

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

git-committers

Get a committer list from a git repository with some sorting and formatting options.

Looking for a grunt task? grunt-git-committers

$ npm install git-committers

Example

var gitCommitters = require('git-committers');

// logs output in console
gitCommitters();

// pass a callback
gitCommitters(function (err, output) {
  if (err) throw err;
  console.log(output);
});

// pass options
gitCommitters({email: true, sort: 'alphabetical'}, function (err, output) {
  // output including committer email
  // output sorted aphabetically
});

Options

sort

Type: String Default value: chronological

The sort type. Could be one of chronological, alphabetical or commits.

email

Type: Boolean Default value: false

Set to true to include the emails beside the committers.

nomerges

Type: Boolean Default value: false

Set to true to exclude merge commits. It only works when sorting by commits.

License

MIT: http://denis.mit-license.org

Keywords

git

FAQs

Package last updated on 02 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts