{"id":20393041,"url":"https://github.com/aichbauer/node-git-commit-count","last_synced_at":"2026-05-06T09:35:57.145Z","repository":{"id":57143893,"uuid":"87551679","full_name":"aichbauer/node-git-commit-count","owner":"aichbauer","description":"A tool to count the numbers of commits for a git repository","archived":false,"fork":false,"pushed_at":"2017-06-02T18:14:59.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T10:41:52.947Z","etag":null,"topics":["commit","count","git","is-git","nodejs","repo"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aichbauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-07T13:55:22.000Z","updated_at":"2020-10-25T18:38:55.000Z","dependencies_parsed_at":"2022-09-06T00:11:42.016Z","dependency_job_id":null,"html_url":"https://github.com/aichbauer/node-git-commit-count","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-commit-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-commit-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-commit-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aichbauer%2Fnode-git-commit-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aichbauer","download_url":"https://codeload.github.com/aichbauer/node-git-commit-count/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241942475,"owners_count":20046347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commit","count","git","is-git","nodejs","repo"],"created_at":"2024-11-15T03:47:07.303Z","updated_at":"2026-05-06T09:35:52.112Z","avatar_url":"https://github.com/aichbauer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-commit-count\n\n[![Build Status](https://travis-ci.org/aichbauer/node-git-commit-count.svg?branch=master)](https://travis-ci.org/aichbauer/node-git-commit-count)\n[![Build status](https://ci.appveyor.com/api/projects/status/ydlx1qy6a3tdypm3?svg=true)](https://ci.appveyor.com/project/rudolfsonjunior/node-git-commit-count-akb1b)\n[![Coverage Status](https://coveralls.io/repos/github/aichbauer/node-git-commit-count/badge.svg?branch=master)](https://coveralls.io/github/aichbauer/node-git-commit-count?branch=master)\n\nChecks how many commits a git repository has\n## Installation\n\n```sh\n$ npm i git-commit-count --save\n```\nor\n```sh\n$ yarn add git-commit-count\n```\n\n## Usage\n\nReturns the number of the amount of git commits. Returns `-1` if it is not a git repository.\n\n```js\nconst commitCount = require('git-commit-count');\n\ncommitCount(); // number of process.cwd()\ncommitCount('any/git/repo'); // number\n```\n\n## LICENSE\n\nMIT © Lukas Aichbauer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faichbauer%2Fnode-git-commit-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faichbauer%2Fnode-git-commit-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faichbauer%2Fnode-git-commit-count/lists"}