{"library":"registry-info","title":"registry-info","description":"Get npm registry information including URL, auth token, and authorization header from a given scope or default. Version 1.0.0. This is a small utility that combines registry-auth-token and registry-url to provide a unified API. It is useful for tooling that needs to interact with private npm registries. The package is mature and stable, with no recent updates. It supports both default registry and scoped registries. Alternative: directly using registry-auth-token and registry-url separately.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install registry-info"],"cli":null},"imports":["import registryInfo from 'registry-info'","import registryInfo from 'registry-info'","import registryInfo from 'registry-info'; const info = registryInfo();"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import registryInfo from 'registry-info';\n\n// Get info for default registry\nconst info = registryInfo();\nconsole.log(info);\n// { registryUrl: 'https://registry.npmjs.org/', authToken: undefined, authorization: undefined }\n\n// Get info for a scoped registry (e.g. @myco)\nconst scopedInfo = registryInfo('@myco');\nconsole.log(scopedInfo);\n// { registryUrl: 'https://registry.myco.com/', authToken: '...', authorization: 'Bearer ...' }","lang":"javascript","description":"Demonstrates default import and usage with and without scope.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}