PHP 8.3.31
Preview: extract-worker.js Size: 459 B
/proc/thread-self/root/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/lib/install/action/extract-worker.js

'use strict'

const BB = require('bluebird')

const extract = require('pacote/extract')
const npmlog = require('npmlog')

module.exports = (args, cb) => {
  const parsed = typeof args === 'string' ? JSON.parse(args) : args
  const spec = parsed[0]
  const extractTo = parsed[1]
  const opts = parsed[2]
  if (!opts.log && opts.loglevel) {
    opts.log = npmlog
    opts.log.level = opts.loglevel
  }
  BB.resolve(extract(spec, extractTo, opts)).nodeify(cb)
}

Directory Contents

Dirs: 0 × Files: 15

Name Size Perms Modified Actions
412 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
459 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
4.73 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
515 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
3.81 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
604 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
235 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
266 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
3.08 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
274 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
272 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
1.03 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
1.50 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
2.58 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
659 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).