{"id":20395421,"url":"https://github.com/jpeer264/node-is-git-dirty","last_synced_at":"2025-07-16T08:36:45.046Z","repository":{"id":39618056,"uuid":"130589077","full_name":"JPeer264/node-is-git-dirty","owner":"JPeer264","description":"Check if a repository has untracked, modified or added files","archived":false,"fork":false,"pushed_at":"2023-03-03T14:02:33.000Z","size":1353,"stargazers_count":3,"open_issues_count":12,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T16:07:37.939Z","etag":null,"topics":["dirty","git","head","is-git","modified","repo","repository","untracked"],"latest_commit_sha":null,"homepage":"","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":"2018-04-22T17:07:38.000Z","updated_at":"2023-03-04T06:11:22.000Z","dependencies_parsed_at":"2024-02-04T21:08:03.549Z","dependency_job_id":"af765b8f-e308-44d1-9e5d-468b88291652","html_url":"https://github.com/JPeer264/node-is-git-dirty","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"6759e1bd056fee8312f5db50a921ccd563826345"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPeer264%2Fnode-is-git-dirty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPeer264%2Fnode-is-git-dirty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPeer264%2Fnode-is-git-dirty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPeer264%2Fnode-is-git-dirty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JPeer264","download_url":"https://codeload.github.com/JPeer264/node-is-git-dirty/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565660,"owners_count":21125536,"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":["dirty","git","head","is-git","modified","repo","repository","untracked"],"created_at":"2024-11-15T03:57:28.323Z","updated_at":"2025-04-12T12:24:45.116Z","avatar_url":"https://github.com/JPeer264.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-git-dirty\n\n[![Build Status](https://travis-ci.com/JPeer264/node-is-git-dirty.svg?branch=main)](https://travis-ci.com/JPeer264/node-is-git-dirty)\n[![Build status](https://ci.appveyor.com/api/projects/status/ehj6762gbj1e2qyc?svg=true)](https://ci.appveyor.com/project/JPeer264/node-is-git-dirty)\n[![Coverage Status](https://coveralls.io/repos/github/JPeer264/node-is-git-dirty/badge.svg?branch=main)](https://coveralls.io/github/JPeer264/node-is-git-dirty?branch=main)\n\nChecks synchronously if the git repository is clean. This assumes that no files are added, untracked or modified.\n\n## Installation\n\n```sh\n$ npm i is-git-dirty --save\n```\nor\n```sh\n$ yarn add is-git-dirty\n```\n\n## Usage\n\nReturns:\n- `null`: Directory is not a git repository\n- `true`: Files are added, untracked or modified\n- `false`: No files are added, untracked or modified. Git is clean\n\n```js\nimport isGitDirty from 'is-git-dirty';\n\nisGitDirty(); // true or false of process.cwd()\nisGitDirty('any/git/repo'); // true or false\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-is-git-dirty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpeer264%2Fnode-is-git-dirty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpeer264%2Fnode-is-git-dirty/lists"}