Package Exports
- parse-npm-tarball-url
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parse-npm-tarball-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
parse-npm-tarball-url
Parse a tarball URL hosted in the npm registry
Installation
npm i -S parse-npm-tarball-url
Usage
import parseNpmTarbalUrl from 'parse-npm-tarball-url'
const spec = parseNpmTarbalUrl('http://registry.npmjs.org/foo/-/foo-1.0.0.tgz')
console.log(spec)
// {
// host: 'registry.npmjs.org',
// pkg: {
// name: 'foo',
// version: '1.0.0'
// }
// }