{"id":17958311,"url":"https://github.com/sheerun/git-commit-id","last_synced_at":"2025-07-27T00:34:23.902Z","repository":{"id":35126519,"uuid":"209656301","full_name":"sheerun/git-commit-id","owner":"sheerun","description":"Returns commit id (commit sha) of git repository. Useful for Next.js or Sentry.","archived":false,"fork":false,"pushed_at":"2023-01-04T22:01:20.000Z","size":509,"stargazers_count":6,"open_issues_count":12,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T07:37:17.405Z","etag":null,"topics":["git","nextjs","sentry","webpack"],"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/sheerun.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-09-19T22:05:04.000Z","updated_at":"2022-07-14T03:49:06.000Z","dependencies_parsed_at":"2023-01-15T14:21:33.511Z","dependency_job_id":null,"html_url":"https://github.com/sheerun/git-commit-id","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Fgit-commit-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Fgit-commit-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Fgit-commit-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Fgit-commit-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheerun","download_url":"https://codeload.github.com/sheerun/git-commit-id/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394538,"owners_count":20608115,"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","nextjs","sentry","webpack"],"created_at":"2024-10-29T10:59:25.116Z","updated_at":"2025-03-25T03:31:00.004Z","avatar_url":"https://github.com/sheerun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-commit-id [![Build Status](https://travis-ci.org/sheerun/git-commit-id.svg?branch=master)](https://travis-ci.org/sheerun/git-commit-id) [![Modern Node](https://img.shields.io/badge/modern-node-9BB48F.svg)](https://github.com/sheerun/modern-node)\n\n\u003e Returns commit id (commit sha) of git repository\n\nThis package is fast, has no dependencies, has synchronous API, doesn't require git binary.\n\nUseful e.g. for CI, release for [Sentry](https://github.com/getsentry/sentry-webpack-plugin) or build id for [Next.js](https://github.com/zeit/next.js#configuring-the-build-id)\n\n## Installation\n\n```\nyarn add --dev git-commit-id\n```\n\n\u003e If you're using [npm](https://www.npmjs.com/) you can use: `npm install --save-dev git-commit-id`.\n\n## Usage\n\n```js\nconst gitCommitId = require('git-commit-id')\n\nconst commitId = gitCommitId()\n```\n\n### Custom directory\n\nYou can pass `cwd` option to specify custom git directory:\n\n\n```js\nconst commitId = gitCommitId({ cwd: __dirname })\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheerun%2Fgit-commit-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheerun%2Fgit-commit-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheerun%2Fgit-commit-id/lists"}