Skip to content

pnpm/encode-registry

Repository files navigation

encode-registry

Status

Encodes a registry URL. Memoized.

Install

<pnpm|yarn|npm> add encode-registry

Usage

const encodeRegistry = require('encode-registry')

encodeRegistry('https://registry.npmjs.org/')
//> registry.npmjs.org

encodeRegistry('https://localhost:4873/')
//> localhost+4873

License

MIT