@pnpm/normalize-registries
TypeScript icon, indicating that this package has built-in type declarations

6.0.7 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @pnpm/normalize-registries

Weekly Downloads

20,846

Version

6.0.7

License

MIT

Unpacked Size

4.19 kB

Total Files

6

Last publish

Collaborators

  • pnpmuser
  • zkochan