Current Path: > > usr > lib > node_modules > npm > > node_modules > pacote > lib > util
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.8 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
cache-key.js | File | 129 bytes | March 10 2021 14:36:37. | |
finished.js | File | 419 bytes | March 10 2021 14:36:37. | |
git.js | File | 8350 bytes | March 10 2021 14:36:37. | |
opt-check.js | File | 1240 bytes | March 10 2021 14:36:37. | |
pack-dir.js | File | 1050 bytes | March 10 2021 14:36:37. | |
proclog.js | File | 340 bytes | March 10 2021 14:36:37. | |
read-json.js | File | 481 bytes | March 10 2021 14:36:37. |
'use strict' const BB = require('bluebird') const cacache = require('cacache') const cacheKey = require('./cache-key') const optCheck = require('./opt-check') const packlist = require('npm-packlist') const pipe = BB.promisify(require('mississippi').pipe) const tar = require('tar') module.exports = packDir function packDir (manifest, label, dir, target, opts) { opts = optCheck(opts) const packer = opts.dirPacker ? BB.resolve(opts.dirPacker(manifest, dir)) : mkPacker(dir) if (!opts.cache) { return packer.then(packer => pipe(packer, target)) } else { const cacher = cacache.put.stream( opts.cache, cacheKey('packed-dir', label), opts ).on('integrity', i => { target.emit('integrity', i) }) return packer.then(packer => BB.all([ pipe(packer, cacher), pipe(packer, target) ])) } } function mkPacker (dir) { return packlist({ path: dir }).then(files => { return tar.c({ cwd: dir, gzip: true, portable: true, prefix: 'package/' }, files) }) }
SILENT KILLER Tool