PATH: //opt/alt/alt-nodejs14/root/usr/lib/node_modules/npm/lib/utils
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 ansi-trim.js
↓
X
📄 cache-file.js
↓
X
📄 child-path.js
↓
X
📁 completion/
X
📄 completion.sh
↓
X
📄 correct-mkdir.js
↓
X
📄 deep-sort-object.js
↓
X
📄 depr-check.js
↓
X
📄 did-you-mean.js
↓
X
📄 error-handler.js
↓
X
📄 error-message.js
↓
X
📄 escape-arg.js
↓
X
📄 escape-exec-path.js
↓
X
📄 funding.js
↓
X
📄 gently-rm.js
↓
X
📄 git.js
↓
X
📄 gunzip-maybe.js
↓
X
📄 is-registry.js
↓
X
📄 is-windows-bash.js
↓
X
📄 is-windows-shell.js
↓
X
📄 is-windows.js
↓
X
📄 lifecycle-cmd.js
↓
X
📄 lifecycle.js
↓
X
📄 link.js
↓
X
📄 locker.js
↓
X
📄 metrics-launch.js
↓
X
📄 metrics.js
↓
X
📄 module-name.js
↓
X
📄 move.js
↓
X
📄 no-progress-while-running.js
↓
X
📄 open-url.js
↓
X
📄 otplease.js
↓
X
📄 output.js
↓
X
📄 package-id.js
↓
X
📄 parse-json.js
↓
X
📄 perf.js
↓
X
📄 pick-manifest-from-registry-metadata.js
↓
X
📄 pulse-till-done.js
↓
X
📄 read-local-package.js
↓
X
📄 read-user-info.js
↓
X
📄 replace-info.js
↓
X
📄 save-stack.js
↓
X
📄 spawn.js
↓
X
📄 temp-filename.js
↓
X
📄 umask.js
↓
X
📄 unix-format-path.js
↓
X
📄 unsupported.js
↓
X
📄 usage.js
↓
X
📄 warn-deprecated.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: spawn.js
module.exports = spawn var _spawn = require('child_process').spawn var EventEmitter = require('events').EventEmitter var npwr = require('./no-progress-while-running.js') function willCmdOutput (stdio) { if (stdio === 'inherit') return true if (!Array.isArray(stdio)) return false for (var fh = 1; fh <= 2; ++fh) { if (stdio[fh] === 'inherit') return true if (stdio[fh] === 1 || stdio[fh] === 2) return true } return false } function spawn (cmd, args, options) { var cmdWillOutput = willCmdOutput(options && options.stdio) if (cmdWillOutput) npwr.startRunning() var raw = _spawn(cmd, args, options) var cooked = new EventEmitter() raw.on('error', function (er) { if (cmdWillOutput) npwr.stopRunning() er.file = cmd cooked.emit('error', er) }).on('close', function (code, signal) { if (cmdWillOutput) npwr.stopRunning() // Create ENOENT error because Node.js v0.8 will not emit // an `error` event if the command could not be found. if (code === 127) { var er = new Error('spawn ENOENT') er.code = 'ENOENT' er.errno = 'ENOENT' er.syscall = 'spawn' er.file = cmd cooked.emit('error', er) } else { cooked.emit('close', code, signal) } }) cooked.stdin = raw.stdin cooked.stdout = raw.stdout cooked.stderr = raw.stderr cooked.kill = function (sig) { return raw.kill(sig) } return cooked }
SIMPAN PERUBAHAN