{"name":"registry-url","version":"3.0.1","description":"Get the set npm registry URL","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/registry-url"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["npm","conf","config","npmconf","registry","url","uri","scope"],"dependencies":{"rc":"^0.6.0"},"devDependencies":{"mocha":"*","require-uncached":"^1.0.2"},"gitHead":"54c6938d55be5ef4ad6a34cbf670ff64ac0694b0","bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"homepage":"https://github.com/sindresorhus/registry-url","_id":"registry-url@3.0.1","_shasum":"10cfd4e7ba8621d7604a5c862895acdffb074597","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"10cfd4e7ba8621d7604a5c862895acdffb074597","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-3.0.1.tgz","integrity":"sha512-nBRrOcn2u6UZJix8TgreJZ0a9RZMKS/kyS7JGg5xARssJloLHlRAnlatRjAE2Bcl1KqiFMOm5PY03t/KTf3k9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDLymTdtD9lyBLTmBnskHOeZ+A21wrycDXm72zMllQ+AiEA1ix36EJ5HFmj+igaN2pHSDTHOudVV2InHB12RGjf2CI="}],"size":1733,"noattachment":false,"key":"/registry-url/-/registry-url-3.0.1.tgz"},"directories":{},"readme":"# registry-url\n\n> Get the set npm registry URL\n\nIt's usually `https://registry.npmjs.org/`, but it's [configurable](https://docs.npmjs.com/misc/registry).\n\nUse this if you do anything with the npm registry as users will expect it to use their configured registry.\n\n## Install\n\n```\n$ npm install registry-url\n```\n\n## Usage\n\n```ini\n# .npmrc\nregistry = 'https://custom-registry.com/'\n```\n\n```js\nimport registryUrl from 'registry-url';\n\nconsole.log(registryUrl());\n//=> 'https://custom-registry.com/'\n```\n\nIt can also retrieve the registry URL associated with an [npm scope](https://docs.npmjs.com/misc/scope).\n\n```ini\n# .npmrc\n@myco:registry = 'https://custom-registry.com/'\n```\n\n```js\nimport registryUrl from 'registry-url';\n\nconsole.log(registryUrl('@myco'));\n//=> 'https://custom-registry.com/'\n```\n\nIf the provided scope is not in the user's `.npmrc` file, then `registry-url` will check for the existence of `registry`, or if that's not set, fallback to the default npm registry.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-registry-url?utm_source=npm-registry-url&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1427694577483,"_cnpm_publish_time":1427694577483,"dist-tags":{"latest":"7.2.0"}}