PHP 8.2.30
Preview: extract-worker.js Size: 473 B
/proc/thread-self/root/proc/thread-self/root/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.log = npmlog
  // }
  // opts.log.level = opts.loglevel || opts.log.level
  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-03-10 14:36:36
Edit Download
473 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
3.87 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
524 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
3.81 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
656 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
289 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
266 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
3.09 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
274 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
272 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.03 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.50 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
2.59 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
659 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download

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