{"id":18687230,"url":"https://github.com/junosuarez/sanitycheck","last_synced_at":"2025-07-18T09:35:34.054Z","repository":{"id":57356130,"uuid":"20781741","full_name":"junosuarez/sanitycheck","owner":"junosuarez","description":"node module: ensure that all deps are present and accounted for CI / CD","archived":false,"fork":false,"pushed_at":"2015-06-10T19:00:58.000Z","size":149,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T15:36:35.766Z","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/junosuarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-12T20:24:07.000Z","updated_at":"2024-09-22T14:48:10.000Z","dependencies_parsed_at":"2022-09-26T16:32:06.898Z","dependency_job_id":null,"html_url":"https://github.com/junosuarez/sanitycheck","commit_stats":null,"previous_names":["jden/node-sanitycheck"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fsanitycheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fsanitycheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fsanitycheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fsanitycheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junosuarez","download_url":"https://codeload.github.com/junosuarez/sanitycheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248438228,"owners_count":21103409,"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-07T10:32:00.417Z","updated_at":"2025-04-12T05:26:33.422Z","avatar_url":"https://github.com/junosuarez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sanitycheck\nensure that all deps are present and accounted for CI / CD\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n\n## usage\n\nadd it as a dev dependency to your project\n```console\n$ npm install --save-dev sanitycheck\n```\n\nand add it to your test command by editing your `package.json`:\n```javscript\n{\n  \"scripts\": {\n    \"test\": \"sanitycheck \u0026\u0026 \u003ctest runner\u003e\"\n  }\n}\n```\n\nNow you can run it using `$ npm test` and add it to your favorite testing or CI scripts.\n\nIf there are any errors, it exits with an error code of 1. As of 2.0.0, dependencies found\nin package.json but not used in code count as errors.\n\n## example output:\n\n### ok\n```console\nChecking for unused or missing dependencies in package.json...\nValidating all require statements...\n···\nOK\n```\n\n### missing dependencies\n```console\nChecking for unused or missing dependencies in package.json...\nDependencies missing in package.json: cool-ascii-faces\n```\n\n### depenency case error\n```console\nChecking for unused or missing dependencies in package.json...\nValidating all require statements...\n·☹ ·\n1 Errors:\nError: Inside \"c:\\dev\\sanitycheck\\index.js\"\nCannot resolve \"./SUB\" because:\n\"c:\\dev\\sanitycheck\\SUB.js\" doesn't exactly match the actual file path\n\"c:\\dev\\sanitycheck\\sub.js\"\n```\n\n\n## kudos\nmakes use of excellent work from [@thlorenz](https://github.com/thlorenz) in [valiquire](https://npm.im/valiquire) and [@jutaz](https://github.com/jutaz) in [depscan](https://npm.im/depscan)\n\n## contributors\n\n- jden \u003cjason@denizac.org\u003e\n\n\n## license\n\nISC. (c) MMXIV jden \u003cjason@denizac.org\u003e. See LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fsanitycheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunosuarez%2Fsanitycheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fsanitycheck/lists"}