# normalize-registry-url

> Normalizes a npm registry URL

Latest version **2.0.1** (published 2026-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install normalize-registry-url
pnpm add normalize-registry-url
yarn add normalize-registry-url
bun add normalize-registry-url
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2026-01-16 |
| First published | 2017-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Zoltan Kochan |
| Maintainers | zkochan |
| Keywords | registry, npm, normalize |

## Links

- npm: https://www.npmjs.com/package/normalize-registry-url
- Repository: https://github.com/pnpm/normalize-registry-url
- Homepage: https://github.com/pnpm/normalize-registry-url#readme
- Issues: https://github.com/pnpm/normalize-registry-url/issues
- npm.io page: https://npm.io/package/normalize-registry-url

## Recent versions

- 2.0.1 (latest) — 2026-01-16
- 2.0.0 — 2021-11-22
- 1.0.0 — 2017-06-21
- 0.0.0 — 2017-06-21

## README

# normalize-registry-url

[![Build Status](https://travis-ci.org/pnpm/normalize-registry-url.svg?branch=master)](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)

---
_Source: https://npm.io/package/normalize-registry-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
