Resolve the registry URL for scoped packages.
npm supports per-scope registry configuration in .npmrc:
@mycompany:registry=https://npm.mycompany.com/This allows private packages under @mycompany/* to resolve
from a custom registry while other packages use the default.
Summary
Functions
Get all configured scope registries from .npmrc.
Get the registry URL for a package name.
Extract the scope from a scoped package name.
Check if a package name is scoped.
Functions
Get all configured scope registries from .npmrc.
Returns a map of scope => registry_url.
Get the registry URL for a package name.
Checks .npmrc for scope-specific registry configuration,
falls back to the default registry.
Extract the scope from a scoped package name.
Returns nil for unscoped packages.
Check if a package name is scoped.