{"id":15290254,"url":"https://github.com/npm/lock-verify","last_synced_at":"2025-10-07T03:32:21.789Z","repository":{"id":51887790,"uuid":"99963296","full_name":"npm/lock-verify","owner":"npm","description":"Report if your package.json is out of sync with your package-lock.json","archived":true,"fork":false,"pushed_at":"2022-11-16T19:11:17.000Z","size":36,"stargazers_count":38,"open_issues_count":5,"forks_count":11,"subscribers_count":11,"default_branch":"latest","last_synced_at":"2024-10-01T16:06:34.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npm.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":"2017-08-10T20:44:47.000Z","updated_at":"2023-08-25T22:33:09.000Z","dependencies_parsed_at":"2022-09-05T18:00:24.181Z","dependency_job_id":null,"html_url":"https://github.com/npm/lock-verify","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flock-verify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flock-verify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flock-verify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flock-verify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/lock-verify/tar.gz/refs/heads/latest","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235586072,"owners_count":19014028,"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-09-30T16:06:37.485Z","updated_at":"2025-10-07T03:32:21.461Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Note: pending imminent deprecation\n\n**This module will be deprecated once npm v7 is released.  Please do not rely\non it more than absolutely necessary (ie, only if you are depending on\nit for use with npm v6 internal dependencies).**\n\n----\n\n# lock-verify\n\nReport if your package.json is out of sync with your package-lock.json.\n\n## USAGE\n\n```\nconst lockVerify = require('lock-verify')\nlockVerify(moduleDir).then(result =\u003e {\n  result.warnings.forEach(w =\u003e console.error('Warning:', w))\n  if (!result.status) {\n    result.errors.forEach(e =\u003e console.error(e))\n    process.exit(1)\n  }\n})\n```\n\nAs a library it's a function that takes the path to a module and returns a\npromise that resolves to an object with `.status`, `.warnings` and `.errors`\nproperties.  The first will be true if everything was ok (though warnings\nmay exist). If there's no `package.json` or no lockfile in `moduleDir` or they're\nunreadable then the promise will be rejected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Flock-verify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Flock-verify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Flock-verify/lists"}