npm.io
1101.0.3 • Published 1 week ago

@pnpm/config.normalize-registries

Licence
MIT
Version
1101.0.3
Deps
4
Size
32 kB
Vulns
0
Weekly
0
Stars
36.8K

@pnpm/config.normalize-registries

Accepts a mapping of registry URLs and returns a mapping with the same URLs but normalized

Installation

pnpm add @pnpm/config.normalize-registries

Usage

import normalizeRegistries from '@pnpm/config.normalize-registries'

normalizeRegistries({
  'default': 'https://registry.npmjs.org',
  '@foo': 'https://example.com',
})
// will return the same object but the URLs will end with a /

License

MIT

Keywords