{"name":"registry-url","version":"6.0.0","description":"Get the set npm registry URL","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/registry-url.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["npm","conf","config","npmconf","registry","url","uri","scope"],"dependencies":{"rc":"^1.2.8"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"ava":{"serial":true},"gitHead":"4a48137e4b95506a8d0a36a6d60da2048ddf5481","bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"homepage":"https://github.com/sindresorhus/registry-url#readme","_id":"registry-url@6.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-3dTUe7E2Uj4xiQf5OhNeF2vnqbtzX1s0xYfU0mDMzkwgvaTUGOWLw7ieXu20ht9w+dURqr5Yg8PRAON9ppGmvA==","shasum":"fa74e05576071a4613416c15ea13afe443ec176c","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-6.0.0.tgz","fileCount":5,"unpackedSize":4287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeyAVCRA9TVsSAnZWagAAW88QAJ7wuQKbxZI6XmttkfdM\nMSDXR3pU5GVDBYCefA3XixbtxkhfERPDgQwedBzdC/xu6X1/7nX3qrExHhZ7\n2vg9hymCJ0QVcHFXMmgR+dfms8ruXrPDP4CxN2S5DYgoNJMYIJjeZQE4awpa\nB5zKXyAbJWoJS6tWYK1p6Jz4mlR1HSnFDCD0KE1Y/YzknXuMECFFL5rBFBhD\nys64xq4DhRSTCcSa8qskkR9nVWyV7J0db4QPKYM+5E7T/ibmV5otx/hH3w1C\nPt1TpCmgnX4Tl/5kgNFzmBLSTCsK0sGWj1ZvrvSCh3i72hxsEHqnrciZfjQ/\ni2PBVAgSPf0olGygL6s/OtCOoljy/+jdsxfoIam69oUKGygepHmfo/QHxO1J\nGGe3wFCsp+8Jlwli6kiCn4JZeiXezqDRXWjsxnAtXiwcuMoxjehLlPP0cd2D\n6+eVfcVJQYz/3imcUUq25cUhS6uSZ8Zl8c396GjPheYof0xMTM6vL/UKqjyn\nZ2xQL+tHhusuNh7BNqaUFNXIC0Fp+mliV4QYGtjW6uAQwfeQDga8XMespfU+\ndTFXzSPhMHOu2J2dKUU35N5wwpi+SCraW9BJ1DsOxngLy15DfLS8Gv49ftNq\nQ+bAdo5W4YNxJr8zvyn9aZy3TJCgsae+6wsIqs+hVGGHJHOBSh/bA2jWoPjI\nmo4p\r\n=KJ1l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFTABm46PReSVVEbispPDKRGOjfQ0P7Q1alpfpK7ao0jAiBCflu2yhyUqBinHXBSCPo7YBHY1Ln3ChO8jCFvgSabXg=="}],"size":2029,"noattachment":false,"key":"/registry-url/-/registry-url-6.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/registry-url_6.0.0_1618681877469_0.22654336040180434"},"_hasShrinkwrap":false,"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":1618681877600,"_cnpm_publish_time":1618681877600,"dist-tags":{"latest":"7.2.0"}}