{"id":20218272,"url":"https://github.com/cannercms/npm-check-install","last_synced_at":"2025-07-17T14:36:43.537Z","repository":{"id":113038359,"uuid":"151660341","full_name":"CannerCMS/npm-check-install","owner":"CannerCMS","description":"Check whether a npm module is installed, otherwise installed it.","archived":false,"fork":false,"pushed_at":"2018-12-20T03:44:50.000Z","size":189,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-03T11:35:49.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CannerCMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-10-05T02:14:01.000Z","updated_at":"2022-09-25T15:36:53.000Z","dependencies_parsed_at":"2023-03-13T13:23:32.766Z","dependency_job_id":null,"html_url":"https://github.com/CannerCMS/npm-check-install","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CannerCMS/npm-check-install","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fnpm-check-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fnpm-check-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fnpm-check-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fnpm-check-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CannerCMS","download_url":"https://codeload.github.com/CannerCMS/npm-check-install/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fnpm-check-install/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265617471,"owners_count":23799055,"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-14T06:37:50.191Z","updated_at":"2025-07-17T14:36:43.511Z","avatar_url":"https://github.com/CannerCMS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-check-install\n\nCheck if the specific npm package has already been installed or not. If it has been installed, do nothing; Otherwise, install it.\n\n## Installation\n\n```sh\n$ npm install --save npm-check-install\n```\n\n## Usage\n\n```js\nconst npmCheckInstall = require('npm-check-install');\n\nnpmCheckInstall('antd', { cwd: 'path to check and install' // default process.cwd() })\n  .then((hasFound) =\u003e {\n    // do stuff\n  })\n  .catch((err) =\u003e {\n    console.error('ERROR: ', err);\n  });\n```\n\n## License\n\nMIT © [Canner](http://github.com/canner)\n\n\u003ca href=\"https://canner.io\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/26116324/37811196-a437d930-2e93-11e8-97d8-0653ace2a46d.png\"/\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannercms%2Fnpm-check-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcannercms%2Fnpm-check-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannercms%2Fnpm-check-install/lists"}