{"id":49820342,"url":"https://github.com/robertwang1001/check-git-clean","last_synced_at":"2026-05-13T10:06:49.294Z","repository":{"id":252791340,"uuid":"841481347","full_name":"robertwang1001/check-git-clean","owner":"robertwang1001","description":"Check the cleanliness of a Git working directory, identifying untracked, unstaged, and uncommitted changes.","archived":false,"fork":false,"pushed_at":"2026-05-12T10:01:00.000Z","size":428,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-12T19:32:42.174Z","etag":null,"topics":["changes","clean","git","nodejs","repository","status","typescript","uncommitted","unstaged","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/robertwang1001.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-12T13:48:31.000Z","updated_at":"2026-04-05T20:38:04.000Z","dependencies_parsed_at":"2024-11-29T11:22:42.237Z","dependency_job_id":"7511094f-106b-4d9c-ac89-a9fd5238af79","html_url":"https://github.com/robertwang1001/check-git-clean","commit_stats":null,"previous_names":["glorywong/check-git-clean","robertwang1001/check-git-clean"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/robertwang1001/check-git-clean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertwang1001%2Fcheck-git-clean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertwang1001%2Fcheck-git-clean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertwang1001%2Fcheck-git-clean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertwang1001%2Fcheck-git-clean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertwang1001","download_url":"https://codeload.github.com/robertwang1001/check-git-clean/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertwang1001%2Fcheck-git-clean/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32977375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["changes","clean","git","nodejs","repository","status","typescript","uncommitted","unstaged","untracked"],"created_at":"2026-05-13T10:06:27.722Z","updated_at":"2026-05-13T10:06:49.278Z","avatar_url":"https://github.com/robertwang1001.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub License](https://img.shields.io/github/license/GloryWong/check-git-clean)\n![GitHub commit activity](https://img.shields.io/github/commit-activity/w/GloryWong/check-git-clean)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/GloryWong/check-git-clean/release.yml)\n![GitHub Release](https://img.shields.io/github/v/release/GloryWong/check-git-clean)\n![GitHub Release Date](https://img.shields.io/github/release-date/GloryWong/check-git-clean)\n![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/GloryWong/check-git-clean)\n![GitHub watchers](https://img.shields.io/github/watchers/GloryWong/check-git-clean)\n![GitHub forks](https://img.shields.io/github/forks/GloryWong/check-git-clean)\n![GitHub Repo stars](https://img.shields.io/github/stars/GloryWong/check-git-clean)\n![NPM Version](https://img.shields.io/npm/v/check-git-clean)\n![NPM Type Definitions](https://img.shields.io/npm/types/check-git-clean)\n![NPM Downloads](https://img.shields.io/npm/dw/check-git-clean)\n![Node Current](https://img.shields.io/node/v/check-git-clean)\n\n# check-git-clean\n\nCheck the cleanliness of a Git working directory, identifying untracked, unstaged, and uncommitted changes.\n\n## Install\n\nUsing pnpm:\n\n```bash\npnpm add check-git-clean\n```\n\nUsing yarn:\n\n```bash\nyarn add check-git-clean\n```\n\nUsing npm:\n\n```bash\nnpm install check-git-clean\n```\n\n## Usage\n\n```javascript\nimport { checkGitClean } from 'check-git-clean'\n\n/**\n * Check if a local git repository is clean.\n * Ignore files defined in [git-ignore-patterns](git-ignore-patterns),\n * which contains commonly git-ignored files for node project.\n * @param dir (optional). Default to `process.cwd()`\n * @return Object { `isClean`, `untracked`, `unstaged`, `uncommitted` }\n */\nconst { isClean, untracked, unstaged, uncommitted } = await checkGitClean()\n```\n\n## Authors\n\n👤 **GloryWong**\n\n* Website: https://glorywong.com\n* GitHub: [@GloryWong](https://github.com/GloryWong)\n\n## Show Your Support\n\nGive a ⭐️ if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertwang1001%2Fcheck-git-clean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertwang1001%2Fcheck-git-clean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertwang1001%2Fcheck-git-clean/lists"}