{"name":"registry-url","version":"3.1.0","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":"xo && ava --serial"},"files":["index.js"],"keywords":["npm","conf","config","npmconf","registry","url","uri","scope"],"dependencies":{"rc":"^1.0.1"},"devDependencies":{"ava":"*","pify":"^2.3.0","require-uncached":"^1.0.2","xo":"*"},"gitHead":"79d07a452fe0c990fa0b154d510c68fc483b4689","bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"homepage":"https://github.com/sindresorhus/registry-url","_id":"registry-url@3.1.0","_shasum":"3d4ef870f73dde1d77f0cf9a381432444e174942","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3d4ef870f73dde1d77f0cf9a381432444e174942","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-3.1.0.tgz","integrity":"sha512-ZbgR5aZEdf4UKZVBPYIgaglBmSF2Hi94s2PcIHhRGFjKYu+chjJdYfHn4rt3hB6eCKLJ8giVIIfgMa1ehDfZKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAU1sHs0Kb/RbLnhFA5PLZJg8buhBcK4+2l+ZyL7RD2zAiEAyzjDHZfOtimVSJIK2FTPYMUKU06nvExClgfzqHryPBs="}],"size":1791,"noattachment":false,"key":"/registry-url/-/registry-url-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/registry-url-3.1.0.tgz_1459781197285_0.25229517510160804"},"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":1459781197847,"_cnpm_publish_time":1459781197847,"dist-tags":{"latest":"7.2.0"}}