parse-npm-tarball-url
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

parse-npm-tarball-url

Build Status

Parse a tarball URL hosted in the npm registry

Installation

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

Usage

import parseNpmTarbalUrl from 'parse-npm-tarball-url'
 
const pkg = parseNpmTarbalUrl('http://registry.npmjs.org/foo/-/foo-1.0.0.tgz')
 
console.log(pkg)
// {
//   host: 'registry.npmjs.org',
//   name: 'foo',
//   version: '1.0.0'
// }

Related

License

MIT © Zoltan Kochan

Readme

Keywords

Package Sidebar

Install

npm i parse-npm-tarball-url

Weekly Downloads

106,383

Version

3.0.0

License

MIT

Unpacked Size

5.63 kB

Total Files

6

Last publish

Collaborators

  • zkochan