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.
- Host: GitHub
- URL: https://github.com/pnpm/encode-registry
- Owner: pnpm
- License: mit
- Created: 2017-07-14T20:02:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-19T12:22:25.000Z (about 2 years ago)
- Last Synced: 2025-04-10T02:34:42.073Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 371 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# encode-registry
[](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)