An open API service indexing awesome lists of open source software.

https://github.com/pnpm/encode-registry

Encodes a registry URL. Memoized.
https://github.com/pnpm/encode-registry

Last synced: 8 months ago
JSON representation

Encodes a registry URL. Memoized.

Awesome Lists containing this project

README

          

# encode-registry

[![Status](https://travis-ci.org/pnpm/encode-registry.svg?branch=master)](https://travis-ci.org/pnpm/encode-registry "See test builds")

> Encodes a registry URL. [Memoized](https://en.wikipedia.org/wiki/Memoization).

## Install

```
add encode-registry
```

## Usage

```js
const encodeRegistry = require('encode-registry')

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

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

## License

[MIT](LICENSE)