How to use the pacote.prefetch function in pacote

To help you get started, we’ve selected a few pacote examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deadlocking / Node.js-deb / node-linux-x86 / usr / lib / node_modules / npm / lib / install / action / fetch.js View on Github external
function fetch (staging, pkg, log, next) {
  log.silly('fetch', packageId(pkg))
  const opts = pacoteOpts({integrity: pkg.package._integrity})
  pacote.prefetch(pkg.package._requested, opts).then(() => next(), next)
}
github pmq20 / node-packer / node / deps / npm / lib / install / action / fetch.js View on Github external
function fetch (staging, pkg, log, next) {
  log.silly('fetch', packageId(pkg))
  const opts = pacoteOpts({integrity: pkg.package._integrity})
  pacote.prefetch(pkg.package._requested, opts).then(() => next(), next)
}
github deadlocking / Node.js-deb / node-linux-x64 / usr / lib / node_modules / npm / lib / install / action / fetch.js View on Github external
function fetch (staging, pkg, log, next) {
  log.silly('fetch', packageId(pkg))
  const opts = pacoteOpts({integrity: pkg.package._integrity})
  pacote.prefetch(pkg.package._requested, opts).then(() => next(), next)
}

pacote

JavaScript package downloader

ISC
Latest version published 3 months ago

Package Health Score

95 / 100
Full package analysis