git-commit-count
v1.1.3
Published
A tool to count the numbers of commits of a git repository
Downloads
2,158
Maintainers
Readme
git-commit-count
Checks how many commits a git repository has
Installation
$ npm i git-commit-count --saveor
$ yarn add git-commit-countUsage
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'); // numberLICENSE
MIT © Lukas Aichbauer
