{"name":"registry-url","version":"3.0.3","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":"^1.0.1"},"devDependencies":{"mocha":"*","require-uncached":"^1.0.2"},"gitHead":"2b31439a5b5feab17fd29f73bf881cbca7369882","bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"homepage":"https://github.com/sindresorhus/registry-url","_id":"registry-url@3.0.3","_shasum":"c9f5102e0fd9c9f250522a7f19f68672c84ccc96","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.10.36","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"c9f5102e0fd9c9f250522a7f19f68672c84ccc96","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-3.0.3.tgz","integrity":"sha512-s/HjsuuShWCP2oCN5B9zdqfF4Hr6H6ORq4knqJX3yLrbnIhDSS25gwwIsiMMHvbBivLjYrGGnAyznlT+WmxcAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7pAiQ2VhS5tmjsFPKbcPadiAIaZkeYImPPhwX6dPbOgIhAKiOcu2w67+XlWJWSAGOvT6oBrBL6KA+cRV00AZ0abis"}],"size":1761,"noattachment":false,"key":"/registry-url/-/registry-url-3.0.3.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":1428400846548,"_cnpm_publish_time":1428400846548,"dist-tags":{"latest":"7.2.0"}}