Checks how many commits a git repository has
$ npm i git-commit-count --saveor
$ yarn add git-commit-countReturns 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'); // numberMIT © Lukas Aichbauer