{"name":"registry-url","version":"5.0.0","description":"Get the set npm registry URL","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/registry-url.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["npm","conf","config","npmconf","registry","url","uri","scope"],"dependencies":{"rc":"^1.2.8"},"devDependencies":{"ava":"^1.3.1","import-fresh":"^3.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"ava":{"serial":true},"gitHead":"595ce7147ee2e5d232e0f7ec4d7963203d65e6e0","bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"homepage":"https://github.com/sindresorhus/registry-url#readme","_id":"registry-url@5.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-qH1SjdlyxreHU8atIDzP1MOb1GG2g5746L3nnwISWTUh8GBLotl82sOayZJtm/KwmrMeMaEzAV26o6Pk1hJuoA==","shasum":"ea9b9f54247d0d95adfcaf9e20a4f8fa28d86e72","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-5.0.0.tgz","fileCount":5,"unpackedSize":3741,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchhO5CRA9TVsSAnZWagAA9zcP+waeIx5LcNvHQx8ESfbA\nCicY9jVAuN6TSapxA+WpCZJdaBPq4ep8rbJ6vrFZHE++SKY1KvLdra0zlEBi\nGMx0RPhEsP0oXKulqnUNC/qlXl2fe+l78pOFtRiyO2z3RGFsTLKnnqT8PoMR\nqbkZ/RTIFMWdSDvIxlN7IGJ/2p3CcLq4i+5hcG372MhoyWdNDvU86i6eAs53\nj+T7QVnYNUY/6tNbNXek/Bi0Kl7H+GUaRWGJ8/ilyqA2XKiOeEPl0R69O0/f\nJUK7UCG2g4h9ypEYyZ9PXgrK7fyXMTws4uiYCh+YGcvUN4SUYZrB5FUcjkjd\n+yW+2z3cU+Ut1ye5F42Tg/G1yIibW60d15QhuvYojn1z3eAjSG05DyuqUJWu\nHKzGIXAUdkkWJvz/QUXEkaYJ5F3ZDNZkqcF2X3Mzau8FK90pMt25VVksnXSQ\nn/8z7afS74kSf/n8eCp1F/DdIJbrQrgl8/4M4A/HyIK9lhLxBcfWXtzwN+zr\nzjICH8yKZyNH/jTdeS9IkUmbxWA0Us9KGZqZ88rSlszDGi22moQbFZ+v7rnp\nMALI/FAKXe+NSywmkMe8Nbm0XPGGWWoE61H+Xrrapegt6PeYSaGnmEZ3tGWC\nRHFoVyMfllUzNs5yyqiNl19dUZVAppKJvF2PvcXKJlNTeoCE6UC9osf/v5Yv\n+4Sb\r\n=Gz4E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCobx0L0/Esftbupv/uQVZ48a8n6XDRd3xIaDEtdlMi+wIgSbPLYBBs682Ms/hQV7IKBB0AzOtJ2nc5AEloAANHjxU="}],"size":1837,"noattachment":false,"key":"/registry-url/-/registry-url-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/registry-url_5.0.0_1552290745045_0.6055790515880546"},"_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":1552290745260,"_cnpm_publish_time":1552290745260,"dist-tags":{"latest":"7.2.0"}}