{"name":"registry-url","version":"7.0.0","keywords":["npm","conf","config","npmconf","registry","url","uri","scope"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"registry-url@7.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/registry-url#readme","bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"ava":{"serial":true},"dist":{"shasum":"94d13afb496a5c91d8e6b090c7665e608aaf06b0","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-7.0.0.tgz","fileCount":5,"integrity":"sha512-z6InNb6kr5We+h/+lbHMVG3QDcoGJACrn35/rTVG8kvWxLIZW5225NSw2EPllAq7xJ1e8xLz15+79d/l0zVprA==","signatures":[{"sig":"MEUCIQCjHgo2i6ETGsvAGUynOlNT2mpDhXAE3lcxLWdu9+PjLgIgOgUuOL+yQarWlS/lbOMpD6ssPHJip065mskWzOzl7D8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4319,"size":1950,"noattachment":false,"key":"/registry-url/-/registry-url-7.0.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"372d5329d750ad200ad592f54a1afa34221eb4a7","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/registry-url.git","type":"git"},"_npmVersion":"10.9.2","description":"Get the set npm registry URL","directories":{},"sideEffects":false,"_nodeVersion":"23.6.1","dependencies":{"ini":"^5.0.0","find-up-simple":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.60.0","ava":"^6.2.0","tsd":"^0.31.2"},"_npmOperationalInternal":{"tmp":"tmp/registry-url_7.0.0_1743666159812_0.059510754450724956","host":"s3://npm-registry-packages-npm-production"},"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```sh\nnpm install registry-url\n```\n\n## Usage\n\n```ini\n# .npmrc\nregistry = 'https://custom-registry.com/'\n```\n\n```js\nimport registryUrl, {defaultUrl} from 'registry-url';\n\nconsole.log(registryUrl());\n//=> 'https://custom-registry.com/'\n\nconsole.log(defaultUrl);\n//=> 'https://registry.npmjs.org/'\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","publish_time":1743666159973,"_cnpm_publish_time":1743666159973,"dist-tags":{"latest":"7.2.0"}}