https://github.com/pnpm/get-npm-tarball-url
Create the tarball URL of a npm package
https://github.com/pnpm/get-npm-tarball-url
Last synced: 3 months ago
JSON representation
Create the tarball URL of a npm package
- Host: GitHub
- URL: https://github.com/pnpm/get-npm-tarball-url
- Owner: pnpm
- License: mit
- Created: 2017-03-17T01:26:43.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-11-07T13:09:09.000Z (over 1 year ago)
- Last Synced: 2025-04-10T02:31:16.269Z (3 months ago)
- Language: TypeScript
- Size: 364 KB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-npm-tarball-url
[](https://travis-ci.org/pnpm/get-npm-tarball-url)
> Create the tarball URL of a npm package
## Installation
```
pnpm add get-npm-tarball-url
```## Usage
```js
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'
```## Related
- [parse-npm-tarball-url](https://github.com/pnpm/parse-npm-tarball-url) - Parse a tarball URL hosted in the npm registry
## License
[MIT](LICENSE) © [Zoltan Kochan](https://www.kochan.io)