{"name":"registry-url","version":"7.1.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.1.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":"283829aff55f2fd61b8cef1fa73a3d507c3199d1","tarball":"http://registry-npm.ywwl.com/registry-url/download/registry-url-7.1.0.tgz","fileCount":5,"integrity":"sha512-ce7eutvc1nKYIF5lNm2LRAruVvb3P5jbgRkMEMqlC2mR/GWu7xHRDN7GuTXcMXzHKOnB4oAdIPfJ01gU+WH6wg==","signatures":[{"sig":"MEUCIQDFRHx43UKAtR3o8XLxH7PRhPqUMTs7Bz20aSHSgZKZ9AIgIaQdc8KdLeLqXlislN3VzTHL+OVCtXYYhMb7rcIjAfs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4701,"size":1971,"noattachment":false,"key":"/registry-url/-/registry-url-7.1.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":"0713fe1674bcfdece5814ccaef8ae26da3e41e1c","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.1.0_1744277526070_0.17033741154798965","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":1744277526254,"_cnpm_publish_time":1744277526254,"dist-tags":{"latest":"7.2.0"}}