{"_id":"@cjser/registry-url__v6_0_1","name":"@cjser/registry-url__v6_0_1","dist-tags":{"latest":"6.0.1-cjser.2"},"versions":{"6.0.1-cjser.2":{"name":"@cjser/registry-url__v6_0_1","version":"6.0.1-cjser.2","description":"Get the set npm registry URL","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./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},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"6.0.1","cjserVersion":2,"original":{"name":"registry-url","version":"6.0.1","exports":"./index.js","repository":"sindresorhus/registry-url","dependencies":{"rc":"1.2.8"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/registry-url__v6_0_1@6.0.1-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-9kZHc5RIKjT0qGjUWk1tQJAbtMzv7wjNhR1Oy3pg65c7SLHv04+Gt4+XoSOvk9xKSmf4bPiKZpzRgvAD8cMOWw==","shasum":"a9f883a341ab3ee9f21842628a5e0baee4f1a7de","tarball":"https://registry.npmjs.org/@cjser/registry-url__v6_0_1/-/registry-url__v6_0_1-6.0.1-cjser.2.tgz","fileCount":6,"unpackedSize":7167,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCAWw+sx6QngJUzogeWp9ov6aZoZ6A/BSBS3KK2+ObJrAIhAKBjC5vQRmkHBGhby3kdcsXZz10R4hjAuV1rRNxg590W"}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/registry-url__v6_0_1_6.0.1-cjser.2_1778159792769_0.8998814620333235"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:16:32.622Z","6.0.1-cjser.2":"2026-05-07T13:16:32.904Z","modified":"2026-05-07T13:16:33.188Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Get the set npm registry URL","keywords":["npm","conf","config","npmconf","registry","url","uri","scope"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/registry-url\n","readmeFilename":"readme.md","_rev":"1-b3ef6aeb0c2409278a8f4f4c8f4693fe"}