{"id":15700804,"url":"https://github.com/linusu/node-git-log","last_synced_at":"2025-05-12T15:23:59.417Z","repository":{"id":65991999,"uuid":"227183168","full_name":"LinusU/node-git-log","owner":"LinusU","description":"Read Git commit history from Node.js","archived":false,"fork":false,"pushed_at":"2023-05-22T10:40:42.000Z","size":17,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T15:23:54.088Z","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/LinusU.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":"2019-12-10T17:53:23.000Z","updated_at":"2024-10-21T09:07:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"9fb5b619-2abd-47c6-a7b4-7716d1a84228","html_url":"https://github.com/LinusU/node-git-log","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"3457f1731e10d4286a357191e757b2f4bd755ecb"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-git-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-git-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-git-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-git-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/node-git-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253764085,"owners_count":21960510,"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-10-03T19:54:18.761Z","updated_at":"2025-05-12T15:23:59.374Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Git Log\n\nRead Git commit history from Node.js.\n\n## Installation\n\n```sh\nnpm install --save git-log\n```\n\n## Usage\n\n```js\nimport gitLog from 'git-log'\n\nconst commits = await gitLog()\n\nconsole.log(commits[0].title)\n//=\u003e Upgrade to Node.js 10.x\n\nconsole.log(commits[0].date)\n//=\u003e 2019-10-07T20:47:10.000Z\n\nconsole.log(commits[0].body)\n//=\u003e This patch change the Node.js verison to...\n\nconsole.log(commits[0].hash)\n//=\u003e e79b76217e03ba5b4e87182d07f855d9ff3e6d95\n```\n\n## API\n\n### `gitLog([options])`\n\n- `options` (`object`, optional)\n  - `merges` (`boolean`, optional) - Wether or not to include commits with more than one parent.\n  - `range` (`string`, optional) - Include only commits in the specified revision range. When no `range` is specified, it defaults to `'HEAD'` (i.e. the whole history leading to the current commit).\n  - `repo` (`string`, optional) - Path to the repository to read the log from. When no `repo` is specified, the current working dirtectory will be used.\n  - `path` (`string | string[]`, optional) - Path to a file or directory to limit results to specific changes. When no `path` is specified, the entire history of the project is returned.\n- returns `Promise\u003cobject[]\u003e` - List of commits\n  - `subject` (`string`) - Subject of the commit\n  - `body` (`string`) - Body of the commit\n  - `hash` (`string`) - Hash of the commit\n  - `date` (`Date`) - Committer date of the commit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-git-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fnode-git-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-git-log/lists"}