@polcats/git-commit-count

1.1.3 • Public • Published

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

Package Sidebar

Install

npm i @polcats/git-commit-count

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

5.39 kB

Total Files

5

Last publish

Collaborators

  • polcats