# parse-npm-tarball-url

> Parse a tarball URL hosted in the npm registry

Latest version **5.0.0** (published 2026-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-npm-tarball-url
pnpm add parse-npm-tarball-url
yarn add parse-npm-tarball-url
bun add parse-npm-tarball-url
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2026-05-08 |
| First published | 2017-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.13 |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zoltan Kochan |
| Maintainers | zkochan |
| Keywords | npm, parse, url, tarball |

## Links

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

## Dependencies (1)

- [semver](https://npm.io/package/semver.md) ^7.6.3

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 5.0.0 (latest) — 2026-05-08
- 2.0.0 (next) — 2018-11-30
- 4.0.0 — 2025-11-12
- 3.0.0 — 2019-05-27
- 1.0.3 — 2018-02-10
- 1.0.2 — 2018-01-03
- 1.0.1 — 2017-02-26
- 1.0.0 — 2017-02-13
- 0.0.0 — 2017-02-13

## README

# parse-npm-tarball-url

> Parse a tarball URL hosted in the npm registry

## Installation

```
<pnpm|yarn|npm> add parse-npm-tarball-url
```

## Usage

```js
import { parseNpmTarballUrl } from 'parse-npm-tarball-url'

const pkg = parseNpmTarballUrl('http://registry.npmjs.org/foo/-/foo-1.0.0.tgz')

console.log(pkg)
// {
//   host: 'registry.npmjs.org',
//   name: 'foo',
//   version: '1.0.0'
// }
```

## Related

- [get-npm-tarball-url](https://github.com/pnpm/get-npm-tarball-url) - Create the tarball URL of a npm package

## License

[MIT](LICENSE) © [Zoltan Kochan](https://www.kochan.io)

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