{"name":"registry-url","version":"0.1.0","description":"Get the set npm registry URL","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/registry-url"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["npm","conf","config","npmconf","registry","url"],"dependencies":{"npmconf":"^1.0.5"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"homepage":"https://github.com/sindresorhus/registry-url","_id":"registry-url@0.1.0","_shasum":"3bf8f5890da4e44464ce3c6f624cbdeca3c7738a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"3bf8f5890da4e44464ce3c6f624cbdeca3c7738a","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-0.1.0.tgz","integrity":"sha512-PpXENo0n1BQE4sDQPc/yxcQYKgv9/lg6UduAwTGeuo3kX+c/qQF3Zp/scwzZQ+NntBNcuHL0KHaNBVOgKPmX3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGT9a4xusOgmylkqtuDchyhvvZcjRSvbkr3dLMeEUOXjAiEA6XrTjn8LUFz0jsZK1RcWJJLGbOuKdLTFrgf1O53zIfY="}],"size":902,"noattachment":false,"key":"/registry-url/-/registry-url-0.1.0.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":1402858506495,"_cnpm_publish_time":1402858506495,"dist-tags":{"latest":"7.2.0"}}