Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

get-npm-tarball-url

pnpm6.6mMIT2.1.0TypeScript support: included

Create the tarball URL of a npm package

npm, url, tarball

readme

get-npm-tarball-url

Build Status

Create the tarball URL of a npm package

Installation

pnpm add get-npm-tarball-url

Usage

import getNpmTarballUrl from 'get-npm-tarball-url'

const url = getNpmTarballUrl('foo', '1.0.0')

console.log(url)
// 'https://registry.npmjs.org/foo/-/foo-1.0.0.tgz'

License

MIT © Zoltan Kochan