{"id":16363916,"url":"https://github.com/axelrindle/node-is-git-repository","last_synced_at":"2026-05-01T16:34:03.650Z","repository":{"id":57106102,"uuid":"282289188","full_name":"axelrindle/node-is-git-repository","owner":"axelrindle","description":"Node.js package for testing whether a given directory is a git repository.","archived":false,"fork":false,"pushed_at":"2022-04-03T11:07:29.000Z","size":319,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T10:42:00.279Z","etag":null,"topics":["git","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@axelrindle/is-git-repository","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/axelrindle.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":"2020-07-24T18:22:48.000Z","updated_at":"2022-04-03T10:48:03.000Z","dependencies_parsed_at":"2022-08-20T23:50:55.782Z","dependency_job_id":null,"html_url":"https://github.com/axelrindle/node-is-git-repository","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelrindle%2Fnode-is-git-repository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelrindle%2Fnode-is-git-repository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelrindle%2Fnode-is-git-repository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelrindle%2Fnode-is-git-repository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axelrindle","download_url":"https://codeload.github.com/axelrindle/node-is-git-repository/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239793063,"owners_count":19697893,"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","nodejs"],"created_at":"2024-10-11T02:28:55.234Z","updated_at":"2026-02-06T02:30:20.436Z","avatar_url":"https://github.com/axelrindle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CI](https://github.com/axelrindle/node-is-git-repository/workflows/CI/badge.svg)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/24cdb7ac29974d25ba4a8201b89291ac)](https://www.codacy.com/manual/axelrindle/node-is-git-repository?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=axelrindle/node-is-git-repository\u0026amp;utm_campaign=Badge_Grade)\n[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/24cdb7ac29974d25ba4a8201b89291ac)](https://www.codacy.com/manual/axelrindle/node-is-git-repository?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=axelrindle/node-is-git-repository\u0026utm_campaign=Badge_Coverage)\n\n# node-is-git-repository\n\nNode.JS package for testing whether a given directory belongs to a git repository.\n\n## Installation\n\n```bash\n$ npm i @axelrindle/is-git-repository\n```\n\n## Usage\n\n```js\nconst isGitRepository = require('@axelrindle/is-git-repository');\n\n(async () =\u003e {\n  await isGitRepository(); // fails when not in a valid git repository\n  // ...\n})();\n\n```\n\n[Check the wiki](https://github.com/axelrindle/node-is-git-repository/wiki/API) for a full API overview.\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelrindle%2Fnode-is-git-repository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxelrindle%2Fnode-is-git-repository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelrindle%2Fnode-is-git-repository/lists"}