{"id":19298989,"url":"https://github.com/javierbyte/node-git-history","last_synced_at":"2026-05-14T08:41:42.585Z","repository":{"id":79430968,"uuid":"100225198","full_name":"javierbyte/node-git-history","owner":"javierbyte","description":"A git wrapper for node to get a repo history data","archived":false,"fork":false,"pushed_at":"2017-08-14T04:01:58.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T22:27:32.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/javierbyte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-08-14T03:36:56.000Z","updated_at":"2017-08-14T03:37:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"6eedf3ce-567d-468d-abc4-d0ca4d2d2abb","html_url":"https://github.com/javierbyte/node-git-history","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fnode-git-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fnode-git-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fnode-git-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fnode-git-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javierbyte","download_url":"https://codeload.github.com/javierbyte/node-git-history/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240400334,"owners_count":19795332,"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":[],"created_at":"2024-11-09T23:09:42.911Z","updated_at":"2026-05-14T08:41:37.521Z","avatar_url":"https://github.com/javierbyte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-git-history\n\nA dependency-free git log wrapper for node to get a git repo history data. Only works on Mac and Linux.\n\nTested on node 8 and git 2.\n\n## How to use\n```\nnodeGitHistory(\u003cpath to the git directory\u003e, \u003coptions array\u003e)\n```\n\nSee the [Argument options](#argument-options) section.\n\n### Example\n```js\nconst nodeGitHistory = require('node-git-history');\n\nnodeGitHistory(\"/\", [\n  \"H\", // commit hash\n  \"an\", // author name\n  \"ae\", // author email\n  \"ad\", // author date\n  \"s\" // subject\n])\n  .then(res =\u003e {\n  console.log(`RESPONSE`, res)\n\n  /*\n  'res' is going to look like this:\n    { H: '0b8c4b541d955a02168064c4d5782d054fc54a87',\n      an: 'Javier Bórquez',\n      ae: 'javierbyte@Javiers-MacBook.local',\n      ad: 'Sun Apr 30 19:18:05 2017 -0600',\n      s: 'Add dist code' },\n    { H: '39cdee04986274252b834fd7a80a147a27ac0961',\n      an: 'Javier Bórquez',\n      ae: 'javierbyte@Javiers-MacBook.local',\n      ad: 'Sun Apr 30 19:15:47 2017 -0600',\n      s: 'Initial commit' } ]\n  */\n  })\n\n```\n\n\n## Argument options\n* `H`: Commit hash\n* `h`: Abbreviated commit hash\n* `T`: Tree hash\n* `t`: Abbreviated tree hash\n* `P`: Parent hashes\n* `p`: Abbreviated parent hashes\n* `an`: Author name\n* `ae`: Author email\n* `ad`: Author date (format respects the --date=option)\n* `ar`: Author date, relative\n* `cn`: Committer name\n* `ce`: Committer email\n* `cd`: Committer date\n* `cr`: Committer date, relative\n* `s`: 'Subject\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierbyte%2Fnode-git-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavierbyte%2Fnode-git-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierbyte%2Fnode-git-history/lists"}