https://github.com/pnpm/normalize-registry-url
Normalizes a npm registry URL
https://github.com/pnpm/normalize-registry-url
Last synced: 2 months ago
JSON representation
Normalizes a npm registry URL
- Host: GitHub
- URL: https://github.com/pnpm/normalize-registry-url
- Owner: pnpm
- License: mit
- Created: 2017-06-21T18:52:17.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T06:37:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T00:54:52.574Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# normalize-registry-url
[](https://travis-ci.org/pnpm/normalize-registry-url)
> Normalizes a npm registry URL
## Installation
```
pnpm add normalize-registry-url
```## Usage
```js
const normalizeRegistrUrl = require('normalize-registry-url')const registry = normalizeRegistrUrl('https://registry.npmjs.org')
console.log(registry)
// 'https://registry.npmjs.org/'
```## License
[MIT](LICENSE) © [Zoltan Kochan](https://www.kochan.io)