@pnpm/resolving.tarball-url
Build and recognize the canonical tarball URL of an npm package
Last updated a month ago by pnpmuser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @pnpm/resolving.tarball-url 
SYNC missed versions from official npm registry.

@pnpm/resolving.tarball-url

Build and recognize the canonical tarball URL of an npm package

npm version

Installation

pnpm add @pnpm/resolving.tarball-url

Usage

import {
  getNpmTarballUrl,
  isCanonicalRegistryTarballUrl,
} from '@pnpm/resolving.tarball-url'

const registry = 'https://registry.npmjs.org/'

getNpmTarballUrl('foo', '1.0.0', { registry })
//=> 'https://registry.npmjs.org/foo/-/foo-1.0.0.tgz'

isCanonicalRegistryTarballUrl(
  'https://registry.npmjs.org/foo/-/foo-1.0.0.tgz',
  { name: 'foo', version: '1.0.0' },
  registry
)
//=> true

License

MIT

Current Tags

  • 1101.1.6                                ...           latest (a month ago)

10 Versions

  • 1101.1.6                                ...           a month ago
  • 1101.1.5                                ...           a month ago
  • 1101.1.4                                ...           2 months ago
  • 1101.1.3                                ...           2 months ago
  • 1101.1.2                                ...           2 months ago
  • 1101.1.1                                ...           3 months ago
  • 1101.1.0                                ...           3 months ago
  • 1101.0.0                                ...           3 months ago
  • 1100.0.1                                ...           4 months ago
  • 1100.0.0                                ...           5 months ago
Maintainers (2)
Downloads
Total 27
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 10
Last Month 15
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE