{"name":"registry-url","version":"7.2.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":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["npm","conf","config","npmconf","registry","url","uri","scope"],"dependencies":{"find-up-simple":"^1.0.1","ini":"^5.0.0"},"devDependencies":{"ava":"^6.2.0","tsd":"^0.31.2","xo":"^0.60.0"},"ava":{"serial":true},"_id":"registry-url@7.2.0","gitHead":"284797e6e4f484e45afdb7290b20f439ae738c83","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/registry-url/issues"},"homepage":"https://github.com/sindresorhus/registry-url#readme","_nodeVersion":"23.6.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-I5UEBQ+09LWKInA1fPswOMZps0cs2Z+IQXb5Z5EkTJiUmIN52Vm/FD3ji5X82c5jIXL3nWEWOrYK0RkON6Oqyg==","shasum":"1fd41bc099b2a5c45c42ca058ed9a1c6e901da77","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-7.2.0.tgz","fileCount":5,"unpackedSize":5007,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICnuo5icCr3XQzfKmg4tlIxDYa+Y1vZmWL/XD8n+kXIlAiAiVwhsBjfsSNwoPaBI7AtpHDttJIowTGtrMJKIyNZfeQ=="}],"size":2091,"noattachment":false,"key":"/registry-url/-/registry-url-7.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/registry-url_7.2.0_1744741691828_0.3518901503348846"},"_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```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":1744741692049,"_cnpm_publish_time":1744741692049,"dist-tags":{"latest":"7.2.0"}}