{"id":15631660,"url":"https://github.com/alessioalex/git-commits","last_synced_at":"2025-04-30T03:49:18.370Z","repository":{"id":66055856,"uuid":"20262020","full_name":"alessioalex/git-commits","owner":"alessioalex","description":"Get the commit history of a repo in a Node streamy way by shelling out to git-rev-list(1).","archived":false,"fork":false,"pushed_at":"2017-03-01T11:32:55.000Z","size":14,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T03:49:13.736Z","etag":null,"topics":["git","git-commit","git-rev","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alessioalex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-28T15:10:40.000Z","updated_at":"2021-08-15T20:55:37.000Z","dependencies_parsed_at":"2023-02-21T02:15:58.171Z","dependency_job_id":null,"html_url":"https://github.com/alessioalex/git-commits","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"fcb6858935eed82422b9f44b9196b97cca17acaa"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessioalex%2Fgit-commits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessioalex%2Fgit-commits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessioalex%2Fgit-commits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessioalex%2Fgit-commits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alessioalex","download_url":"https://codeload.github.com/alessioalex/git-commits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251638761,"owners_count":21619663,"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":["git","git-commit","git-rev","javascript","nodejs"],"created_at":"2024-10-03T10:41:08.876Z","updated_at":"2025-04-30T03:49:18.315Z","avatar_url":"https://github.com/alessioalex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-commits\n\nGet the commit history of a repo in a Node streamy way by shelling out to [git-rev-list(1)](https://www.kernel.org/pub/software/scm/git/docs/git-rev-list.html).\n\n[![build status](https://secure.travis-ci.org/alessioalex/git-commits.png)](http://travis-ci.org/alessioalex/git-commits)\n\n## Usage\n\n```js\ngitCommits(repoPath, options)\n```\n\nWhere `options` can contain a lot of properties (read ./index.js) for limiting the number of commits, or filtering the commits based on a search term etc.\n\nExample:\n\n```js\nvar gitCommits = require('git-commits');\nvar path = require('path');\nvar repoPath = path.resolve(process.env.REPO || (__dirname + '/.git'));\n\ngitCommits(repoPath, {\n  limit: 2\n}).on('data', function(commit) {\n  console.log(commit);\n  console.log('\\n------------------\\n');\n}).on('error', function(err) {\n  throw err;\n}).on('end', function() {\n  console.log(\"That's all, folks!\");\n});\n```\n\nSample output:\n\n```bash\n→ node example.js\n{ parents: [ '3460bc096c20e04e022915f77a6195059b76a893' ],\n  hash: '86e567818bf22952f325a151eb0124d1b45c55f8',\n  tree: '36672c28ca465e9fa80e71f7015fd71bd9470837',\n  author:\n   { name: 'Alexandru Vladutu',\n     email: 'alexandru.vladutu@gmail.com',\n     timestamp: 1407092756,\n     timezone: '+0300' },\n  committer:\n   { name: 'Alexandru Vladutu',\n     email: 'alexandru.vladutu@gmail.com',\n     timestamp: 1407092756,\n     timezone: '+0300' },\n  title: 'bump to v0.1.2',\n  description: '' }\n\n------------------\n\n{ parents: [ '392fc8d013ed95e85fcab9988f45601bf93c0ed0' ],\n  hash: '3460bc096c20e04e022915f77a6195059b76a893',\n  tree: '23ab88115c31a236bcf75d462319c7ce933fc33a',\n  author:\n   { name: 'Alexandru Vladutu',\n     email: 'alexandru.vladutu@gmail.com',\n     timestamp: 1407092681,\n     timezone: '+0300' },\n  committer:\n   { name: 'Alexandru Vladutu',\n     email: 'alexandru.vladutu@gmail.com',\n     timestamp: 1407092681,\n     timezone: '+0300' },\n  title: 'Updated parser',\n  description: '' }\n\n------------------\n\nThat's all, folks!\n```\n\n## Tests\n\n```\nnpm test\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessioalex%2Fgit-commits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falessioalex%2Fgit-commits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessioalex%2Fgit-commits/lists"}