Parse a tarball URL hosted in the npm registry
<pnpm|yarn|npm> add parse-npm-tarball-url
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'
// }
- get-npm-tarball-url - Create the tarball URL of a npm package