git-commit-count

v1.1.0
A tool to count the numbers of commits of a git repository
git commit commits count git-commi-count number

git-commit-count

Build Status Build status Coverage Status

Checks how many commits a git repository has

Installation

$ npm i git-commit-count --save

or

$ yarn add git-commit-count

Usage

Returns the number of the amount of git commits. Returns -1 if it is not a git repository.

const commitCount = require('git-commit-count');

commitCount(); // number of process.cwd()
commitCount('any/git/repo'); // number

LICENSE

MIT © Lukas Aichbauer

Metadata

  • MIT
  • Whatever
  • Lukas Aichbauer
  • released 5/4/2017

Downloads

Maintainers