{"id":22281729,"url":"https://github.com/chardos/get-git-data","last_synced_at":"2026-05-07T13:33:18.889Z","repository":{"id":57250197,"uuid":"163393829","full_name":"chardos/get-git-data","owner":"chardos","description":"Access git repository data in node.","archived":false,"fork":false,"pushed_at":"2019-02-11T10:56:36.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-04T13:43:25.897Z","etag":null,"topics":["data","git","javascript","node"],"latest_commit_sha":null,"homepage":"","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/chardos.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}},"created_at":"2018-12-28T09:43:38.000Z","updated_at":"2019-02-11T10:56:37.000Z","dependencies_parsed_at":"2022-08-24T16:51:55.515Z","dependency_job_id":null,"html_url":"https://github.com/chardos/get-git-data","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/chardos%2Fget-git-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chardos%2Fget-git-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chardos%2Fget-git-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chardos%2Fget-git-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chardos","download_url":"https://codeload.github.com/chardos/get-git-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245527037,"owners_count":20629929,"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":["data","git","javascript","node"],"created_at":"2024-12-03T16:21:20.550Z","updated_at":"2026-05-07T13:33:18.845Z","avatar_url":"https://github.com/chardos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-git-data\n\n[![npm version](https://img.shields.io/npm/v/get-git-data.svg?style=flat)](https://www.npmjs.com/package/get-git-data)\n\nAccess git revision state in node.\n\n# API\n\nEach method returns a promise.\n\n``` js\nconst git = require('get-git-data');\n\nawait git.short()\n// =\u003e aefdd94\n\nawait git.long()\n// =\u003e aefdd946ea65c88f8aa003e46474d57ed5b291d1\n\nawait git.branch()\n// =\u003e master\n\nawait git.tag()\n// =\u003e 0.1.0\n\nawait git.log()\n// [ { commitHash: 'bd7026f',\n//     commitMessage: 'Fixed issue',\n//     timestamp: '1548644428000',\n//     authorName: 'Richard Tan' },\n//   { commitHash: '6515249',\n//     commitMessage: 'Refactor',\n//     timestamp: '1547908111000',\n//     authorName: 'Richard Tan' },\n//   { commitHash: '8b2ae44',\n//     commitMessage: 'Added new feature',\n//     timestamp: '1547897044000',\n//     authorName: 'Richard Tan' }]\n```\n\n# Install\n\n`npm install get-git-data`\n\n## Credits\n\nOriginal source code from [https://github.com/tblobaum/git-rev](https://github.com/tblobaum/git-rev).\n\nBug patch by [Kacper Kula](https://github.com/kulak-at)\n\n# License\n\n(The MIT License)\n\nCopyright (c) 2012 Thomas Blobaum \u003ctblobaum@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchardos%2Fget-git-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchardos%2Fget-git-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchardos%2Fget-git-data/lists"}