https://github.com/pnpm/normalize-registry-url
Normalizes a npm registry URL
https://github.com/pnpm/normalize-registry-url
Last synced: 3 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 (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2026-01-16T16:06:37.000Z (5 months ago)
- Last Synced: 2026-01-17T05:12:15.098Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- 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)