{"id":19515177,"url":"https://github.com/krmax44/is-repo","last_synced_at":"2026-05-12T21:34:03.318Z","repository":{"id":35119452,"uuid":"209107787","full_name":"krmax44/is-repo","owner":"krmax44","description":"Determines whether a given path is a Git repository.","archived":false,"fork":false,"pushed_at":"2022-02-12T14:01:29.000Z","size":1076,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T11:46:05.109Z","etag":null,"topics":[],"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/krmax44.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-17T16:47:11.000Z","updated_at":"2020-01-07T09:22:33.000Z","dependencies_parsed_at":"2022-08-08T05:15:26.406Z","dependency_job_id":null,"html_url":"https://github.com/krmax44/is-repo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmax44%2Fis-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmax44%2Fis-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmax44%2Fis-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmax44%2Fis-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krmax44","download_url":"https://codeload.github.com/krmax44/is-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766677,"owners_count":19854114,"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-11-10T23:38:51.507Z","updated_at":"2026-05-12T21:34:03.274Z","avatar_url":"https://github.com/krmax44.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Is Repo\n\n[![Build Status](https://travis-ci.com/krmax44/is-repo.svg?branch=master)](https://travis-ci.com/krmax44/is-repo)\n[![install size](https://packagephobia.now.sh/badge?p=is-repo)](https://packagephobia.now.sh/result?p=is-repo)\n[![npm version](https://img.shields.io/npm/v/is-repo)](https://www.npmjs.com/package/is-repo)\n\nDetermines whether a given path is a Git repository. Uses `git rev-parse --is-inside-work-tree`.\n\n## Installation\n\n```bash\nyarn add is-repo\n# or with npm\nnpm i is-repo\n```\n\n## Usage\n\nVery simple.\n\n```js\nimport isRepo from 'is-repo';\n\nawait isRepo(); // defaults to process.cwd()\nawait isRepo('path/to/repo'); // true || false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrmax44%2Fis-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrmax44%2Fis-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrmax44%2Fis-repo/lists"}