https://github.com/simonrenoult/count-commits
Count commits for a given file.
https://github.com/simonrenoult/count-commits
cli commit git nodejs prettier
Last synced: 3 months ago
JSON representation
Count commits for a given file.
- Host: GitHub
- URL: https://github.com/simonrenoult/count-commits
- Owner: simonrenoult
- License: mit
- Created: 2018-03-26T06:49:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T09:56:50.000Z (over 8 years ago)
- Last Synced: 2025-10-24T10:17:24.183Z (8 months ago)
- Topics: cli, commit, git, nodejs, prettier
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# count-commits
> Count commits per file.
[![Build Status][travis-image]][travis-url]
[![Coverage Status][coverage-image]][coverage-url]
[![Style Status][style-image]][style-url]
[![NPM Version][npm-image]][npm-url]
## Install
```sh
$ npm install --global count-commits
```
## Usage
### CLI
```sh
$ count-commits /path/to/file.js
14
```
### API
```js
const { countCommits } = require("count-commits");
const count = await countCommits("/path/to/file.js");
// Do something with
```
## License
See LICENSE.txt
[travis-image]:https://img.shields.io/travis/simonrenoult/count-commits/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/simonrenoult/count-commits
[style-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
[style-url]: https://prettier.io/
[coverage-image]: https://img.shields.io/codecov/c/github/simonrenoult/count-commits.svg?style=flat-square
[coverage-url]: https://codecov.io/gh/simonrenoult/count-commits/branch/master
[npm-image]: https://img.shields.io/npm/v/count-commits.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/count-commits