{"id":26183983,"url":"https://github.com/a145789/lockfile-sync-check","last_synced_at":"2026-02-07T09:00:59.893Z","repository":{"id":280791957,"uuid":"943180741","full_name":"a145789/lockfile-sync-check","owner":"a145789","description":"A command-line tool to check if your package manager's lockfile is in sync with the latest changes in your Git repository.","archived":false,"fork":false,"pushed_at":"2025-04-02T08:35:04.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T18:55:42.069Z","etag":null,"topics":["git","npm","pnpm","yarn"],"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/a145789.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}},"created_at":"2025-03-05T09:45:31.000Z","updated_at":"2025-05-22T13:48:49.000Z","dependencies_parsed_at":"2025-06-04T12:40:39.037Z","dependency_job_id":"ae5ed2a6-53c7-4c7e-8c06-04fb987be7c5","html_url":"https://github.com/a145789/lockfile-sync-check","commit_stats":null,"previous_names":["a145789/lockfile-sync-check"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/a145789/lockfile-sync-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Flockfile-sync-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Flockfile-sync-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Flockfile-sync-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Flockfile-sync-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a145789","download_url":"https://codeload.github.com/a145789/lockfile-sync-check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a145789%2Flockfile-sync-check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29190842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["git","npm","pnpm","yarn"],"created_at":"2025-03-11T22:51:43.289Z","updated_at":"2026-02-07T09:00:59.888Z","avatar_url":"https://github.com/a145789.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lockfile-sync-check\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/lockfile-sync-check\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/lockfile-sync-check\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/a145789/lockfile-sync-check/blob/main/LICENSE\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/github/license/a145789/lockfile-sync-check\" alt=\"License\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[中文文档](https://github.com/a145789/lockfile-sync-check/blob/main/README.zh-CN.md)\n\nA command-line tool to check if your package manager's lockfile is in sync with the latest changes in your Git repository.\n\n## Features\n\n- Supports multiple package managers (npm, yarn, pnpm)\n- Optional automatic dependency installation\n- Easy integration with Git hooks\n\n## Installation\n\n```bash\nnpm install -D lockfile-sync-check\n# or\nyarn add -D lockfile-sync-check\n# or\npnpm add -D lockfile-sync-check\n```\n\n## Usage\n\n```bash\nlockfile-sync-check [package-manager] [--install]\n```\n\n### Options\n\n- `package-manager`: Optional. Specify the package manager to use (\"npm\", \"yarn\", or \"pnpm\"). If not provided, default `pnpm`.\n- `--install`: Optional. Automatically install dependencies if the lockfile is out of sync.\n\n### Example\n\n```bash\n# Check if lockfile is in sync, using default package manager (pnpm)\nlockfile-sync-check\n\n# Check using specific package manager\nlockfile-sync-check npm\n\n# Check and auto-install if out of sync\nlockfile-sync-check npm --install\n```\n\n## Git Hook Integration\n\n### Using simple-git-hooks\n\n1. Install simple-git-hooks:\n\n```bash\nnpm install -D simple-git-hooks\n# or\nyarn add -D simple-git-hooks\n# or\npnpm add -D simple-git-hooks\n```\n\n2. Add configuration to your package.json:\n\n```json\n{\n  \"simple-git-hooks\": {\n    \"post-merge\": \"lockfile-sync-check --install\",\n    \"post-rewrite\": \"lockfile-sync-check --install\"\n  }\n}\n```\n\n3. Initialize git hooks:\n\n```bash\nnpx simple-git-hooks\n```\n\n### Using Husky\n\n1. Install Husky:\n\n```bash\nnpm install -D husky\n# or\nyarn add -D husky\n# or\npnpm add -D husky\n```\n\n2. Initialize Husky:\n\n```bash\nnpx husky install\n```\n\n3. Add hooks:\n\n```bash\nnpx husky add .husky/post-merge \"lockfile-sync-check --install\"\nnpx husky add .husky/post-rewrite \"lockfile-sync-check --install\"\n```\n\n### Manual Setup\n\nAlternatively, you can manually add the script to your `.git/hooks/post-merge` or `.git/hooks/post-rewrite`:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa145789%2Flockfile-sync-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa145789%2Flockfile-sync-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa145789%2Flockfile-sync-check/lists"}