{"name":"registry-url","version":"6.0.1","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},"types":"./index.d.ts","gitHead":"41a8923ffa8571d5f613a5305b911a1b61bbd499","bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"homepage":"https://github.com/sindresorhus/registry-url#readme","_id":"registry-url@6.0.1","_nodeVersion":"12.22.1","_npmVersion":"8.3.2","dist":{"integrity":"sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==","shasum":"056d9343680f2f64400032b1e199faa692286c58","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-6.0.1.tgz","fileCount":5,"unpackedSize":4286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd4ZHYBG5PCaoNnDnl7O/C2A3imMEKEN/5bh9e4cMIqgIhAKO/He95FRMnV9Negpb43mZFlfGuI0kE0iomaxahroFC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis04LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmorhQ/8CLEqGfAg1biNTzq2ElE4I6I9z9x7qbKfqSswsTP6fRrS7u3Z\r\ndU3unlDcujsGwBYzJyEA2xeaDWUu7bFGc8ZycdltR3nFZ7k/OIDJmXGGt5Aq\r\nVc6ipQDhXHkqkdBWxkghH50J4d8RtWaSaU3FIgZnqUMPY2HFtQ8Qc9X95hPT\r\newiciykVJ6ndfLqLTdNh4sXpSuntCVmG6ICTa5EV5/GVRnIukccPWsbquboF\r\ndli7Ay5bAmufbj431ab5mZnUnnafudJqY2hJ0SR4E4FNwfeojW4Ar1G+DG8C\r\n20Mr3wECgVJz/bXwNyoosblRRvgVSiH/3IXI3nun26N5PJwhrhx+s3cfToIY\r\nvMaVAj0wiJmgGKSLkBF4Sf7q2Tyd0fc4qnXV3HHwyvXfahk6+oANQUBVsdd+\r\nssE0w76GwKnOXK+su6RMrueMwTKXEI1NORsWul+ftjqc2R6tXWOEQvVQUD5Y\r\nzK7sTKdTQeRm0p++Uac+7fzous7gSyAGca55JdSvN2ii6RKUztA+jm5gjvWk\r\nvYRA515zWWwrzzV5qocWZ3BteGDcs3ehTiClsPj3l1RTggVK62LCy02qT9aD\r\nYkHGyEB0xKOdgZADpqHa08c1ubZ19fz0lW977LEcP1jeip14FDMLGTpTZsXd\r\nRMVq5HH+DqNGpGKE9PRW7RuJ6/w8ooyHimE=\r\n=FhW6\r\n-----END PGP SIGNATURE-----\r\n","size":2013,"noattachment":false,"key":"/registry-url/-/registry-url-6.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/registry-url_6.0.1_1655918090841_0.8297309936113904"},"_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":1655918091042,"_cnpm_publish_time":1655918091042,"dist-tags":{"latest":"7.2.0"}}