SILENT KILLERPanel

Current Path: > > lib > node_modules > npm > node_modules > pacote


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/node_modules/npm/node_modules/pacote

NameTypeSizeLast ModifiedActions
lib Directory - -
node_modules Directory - -
CHANGELOG.md File 44436 bytes March 10 2021 14:36:37.
LICENSE File 1103 bytes March 10 2021 14:36:37.
README.md File 9833 bytes March 10 2021 14:36:37.
extract.js File 3064 bytes March 10 2021 14:36:37.
index.js File 262 bytes March 10 2021 14:36:37.
manifest.js File 1147 bytes March 10 2021 14:36:37.
package.json File 3430 bytes March 10 2021 14:36:37.
packument.js File 822 bytes March 10 2021 14:36:37.
prefetch.js File 1978 bytes March 10 2021 14:36:37.
tarball.js File 2022 bytes March 10 2021 14:36:37.

Reading File: //lib/node_modules/npm/node_modules/pacote/packument.js

'use strict'

const fetchPackument = require('./lib/fetch').packument
const optCheck = require('./lib/util/opt-check')
const pinflight = require('promise-inflight')
const npa = require('npm-package-arg')

module.exports = packument
function packument (spec, opts) {
  opts = optCheck(opts)
  spec = npa(spec, opts.where)

  const label = [
    spec.name,
    spec.saveSpec || spec.fetchSpec,
    spec.type,
    opts.cache,
    opts.registry,
    opts.scope
  ].join(':')
  const startTime = Date.now()
  return pinflight(label, () => {
    return fetchPackument(spec, opts)
  }).then(p => {
    const elapsedTime = Date.now() - startTime
    opts.log.silly('pacote', `${spec.registry ? 'registry' : spec.type} packument for ${spec.name}@${spec.saveSpec || spec.fetchSpec} fetched in ${elapsedTime}ms`)
    return p
  })
}

SILENT KILLER Tool