Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 525 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 525 Bytes

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