{"id":20395426,"url":"https://github.com/jpeer264/node-git-commit-info","last_synced_at":"2025-04-12T12:30:30.360Z","repository":{"id":21124791,"uuid":"91791599","full_name":"JPeer264/node-git-commit-info","owner":"JPeer264","description":"Get the info of an specific commit hash","archived":false,"fork":false,"pushed_at":"2023-06-08T05:07:43.000Z","size":1263,"stargazers_count":7,"open_issues_count":12,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-01T13:08:19.320Z","etag":null,"topics":["commit","git","information","is-git","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/JPeer264.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-05-19T09:47:09.000Z","updated_at":"2023-11-09T19:16:50.000Z","dependencies_parsed_at":"2024-02-04T21:08:06.471Z","dependency_job_id":"b535a60f-92f0-4eec-a26f-79974e0672a7","html_url":"https://github.com/JPeer264/node-git-commit-info","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPeer264%2Fnode-git-commit-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPeer264%2Fnode-git-commit-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPeer264%2Fnode-git-commit-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPeer264%2Fnode-git-commit-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JPeer264","download_url":"https://codeload.github.com/JPeer264/node-git-commit-info/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224727057,"owners_count":17359533,"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","git","information","is-git","nodejs"],"created_at":"2024-11-15T03:57:28.891Z","updated_at":"2024-11-15T03:57:29.423Z","avatar_url":"https://github.com/JPeer264.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-commit-info\n\nGet all information about a specific commit.\n\n[![Build Status](https://travis-ci.com/JPeer264/node-git-commit-info.svg?branch=master)](https://travis-ci.com/JPeer264/node-git-commit-info)\n[![Build status](https://ci.appveyor.com/api/projects/status/itogtq2ri9e2i24y/branch/master?svg=true)](https://ci.appveyor.com/project/JPeer264/node-git-commit-info/branch/master)\n[![Coverage Status](https://coveralls.io/repos/github/JPeer264/node-git-commit-info/badge.svg?branch=master)](https://coveralls.io/github/JPeer264/node-git-commit-info?branch=master)\n\n## Installation\n\n```sh\n$ npm i git-commit-info --save\n```\nor\n```sh\n$ yarn add git-commit-info\n```\n\n## Usage\n\n**Available parameters:**\n- `cwd`: Specify the path. Default: `process.cwd()`\n- `commit`: The hash of the commit. Default: latest\n\n```js\nconst gitCommitInfo = require('git-commit-info');\n\n// information of process.cwd() and the latest commit\ngitCommitInfo();\n\n// information of the latest commit in ./my_repo\ngitCommitInfo({\n  cwd: './my_repo',\n});\n\n// information of the specified commit in process.cwd()\ngitCommitInfo({\n  commit: '82442c2405804d7aa44e7bedbc0b93bb17707626', // any hash\n});\n\n// information of the specified commit in ./my_repo\ngitCommitInfo({\n  cwd: './my_repo',\n  commit: '82442c2405804d7aa44e7bedbc0b93bb17707626', // any hash\n});\n```\n\n## LICENSE\n\nMIT © [Jan Peer Stöcklmair](https://www.jpeer.at)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpeer264%2Fnode-git-commit-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpeer264%2Fnode-git-commit-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpeer264%2Fnode-git-commit-info/lists"}