{"id":17736684,"url":"https://github.com/parro-it/npm-exists","last_synced_at":"2025-03-14T14:30:52.482Z","repository":{"id":18799784,"uuid":"22013846","full_name":"parro-it/npm-exists","owner":"parro-it","description":"check if a library exists on npm","archived":false,"fork":false,"pushed_at":"2020-06-03T09:18:16.000Z","size":148,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-15T22:25:30.785Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parro-it.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":"2014-07-19T16:25:06.000Z","updated_at":"2019-07-09T11:56:08.000Z","dependencies_parsed_at":"2022-07-22T10:22:37.548Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/npm-exists","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnpm-exists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnpm-exists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnpm-exists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnpm-exists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/npm-exists/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243593262,"owners_count":20316157,"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-10-26T00:24:02.734Z","updated_at":"2025-03-14T14:30:52.099Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-exists\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/parro-it/npm-exists.svg)](https://greenkeeper.io/)\n\ncheck if a package exists on npm\n\n[![Build Status](https://secure.travis-ci.org/parro-it/npm-exists.png?branch=master)](http://travis-ci.org/parro-it/npm-exists)\n[![NPM module](https://img.shields.io/npm/v/npm-exists.svg)](https://npmjs.org/package/npm-exists)\n[![NPM downloads](https://img.shields.io/npm/dt/npm-exists.svg)](https://npmjs.org/package/npm-exists)\n\n# Getting Started\n\n__Install__:\n\n```sh\nnpm install npm-exists --save\n```\n\n__Usage__:\n\nAs module:\n\n```js\nconst exists = require('npm-exists');\n\nexists('request')\n\t.then(moduleExists =\u003e {\n\t\tif (moduleExists) {\n\t\t\tconsole.log('gosh, `request` name already taken!');\n\t\t} else {\n\t\t\tconsole.log('you can register `request`');\n\t\t}\n\t});\n\n// use custom registry:\nexists('request', 'http://localhost:5432/')\n\t.then(moduleExists =\u003e {\n\t\tconsole.log(moduleExists);\n\t});\n```\n\nAs cli:\n\n```sh\nnpm-exists \u003cpackage name\u003e\n```\n\n# License\n\nMIT © 2016, Andrea Parodi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fnpm-exists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fnpm-exists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fnpm-exists/lists"}