Files
pnpm/packages/normalize-registries
2022-05-01 01:35:26 +03:00
..
2021-03-17 17:27:00 +02:00
2022-05-01 01:35:26 +03:00
2022-05-01 01:35:26 +03:00

@pnpm/normalize-registries

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

Installation

pnpm add @pnpm/normalize-registries

Usage

import normalizeRegistries from '@pnpm/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