Back to Pnpm

@pnpm/config.normalize-registries

config/normalize-registries/README.md

11.0.6487 B
Original Source

@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

typescript
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