Skip to content

pnpm/parse-npm-tarball-url

Repository files navigation

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

About

Parse a tarball URL hosted in the npm registry

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published