$24 GRAYBYTE WORDPRESS FILE MANAGER $19

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/lib/utils/

HOME
Current File : /opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/lib/utils//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
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
completion
--
31 Aug 2024 8.02 AM
root / root
0755
ansi-trim.js
0.206 KB
28 Sep 2021 5.29 PM
root / root
0644
cache-file.js
1.704 KB
28 Sep 2021 5.29 PM
root / root
0644
child-path.js
0.283 KB
28 Sep 2021 5.29 PM
root / root
0644
completion.sh
1.739 KB
28 Sep 2021 5.29 PM
root / root
0755
correct-mkdir.js
1.24 KB
28 Sep 2021 5.29 PM
root / root
0644
deep-sort-object.js
0.354 KB
28 Sep 2021 5.29 PM
root / root
0644
depr-check.js
0.44 KB
28 Sep 2021 5.29 PM
root / root
0644
did-you-mean.js
0.436 KB
28 Sep 2021 5.29 PM
root / root
0644
error-handler.js
5.882 KB
28 Sep 2021 5.29 PM
root / root
0644
error-message.js
13.296 KB
28 Sep 2021 5.29 PM
root / root
0644
escape-arg.js
0.642 KB
28 Sep 2021 5.29 PM
root / root
0644
escape-exec-path.js
0.743 KB
28 Sep 2021 5.29 PM
root / root
0644
funding.js
3.519 KB
28 Sep 2021 5.29 PM
root / root
0644
gently-rm.js
0.473 KB
28 Sep 2021 5.29 PM
root / root
0644
git.js
1.699 KB
28 Sep 2021 5.29 PM
root / root
0644
gunzip-maybe.js
0.543 KB
28 Sep 2021 5.29 PM
root / root
0644
is-registry.js
0.287 KB
28 Sep 2021 5.29 PM
root / root
0644
is-windows-bash.js
0.162 KB
28 Sep 2021 5.29 PM
root / root
0644
is-windows-shell.js
0.149 KB
28 Sep 2021 5.29 PM
root / root
0644
is-windows.js
0.058 KB
28 Sep 2021 5.29 PM
root / root
0644
lifecycle-cmd.js
0.484 KB
28 Sep 2021 5.29 PM
root / root
0644
lifecycle.js
0.355 KB
28 Sep 2021 5.29 PM
root / root
0644
link.js
0.229 KB
28 Sep 2021 5.29 PM
root / root
0644
locker.js
1.81 KB
28 Sep 2021 5.29 PM
root / root
0644
metrics-launch.js
1.082 KB
28 Sep 2021 5.29 PM
root / root
0644
metrics.js
2.167 KB
28 Sep 2021 5.29 PM
root / root
0644
module-name.js
0.95 KB
28 Sep 2021 5.29 PM
root / root
0644
move.js
0.283 KB
28 Sep 2021 5.29 PM
root / root
0644
no-progress-while-running.js
0.528 KB
28 Sep 2021 5.29 PM
root / root
0644
open-url.js
0.8 KB
28 Sep 2021 5.29 PM
root / root
0644
otplease.js
0.704 KB
28 Sep 2021 5.29 PM
root / root
0644
output.js
0.205 KB
28 Sep 2021 5.29 PM
root / root
0644
package-id.js
0.39 KB
28 Sep 2021 5.29 PM
root / root
0644
parse-json.js
0.638 KB
28 Sep 2021 5.29 PM
root / root
0644
perf.js
0.535 KB
28 Sep 2021 5.29 PM
root / root
0644
pick-manifest-from-registry-metadata.js
0.874 KB
28 Sep 2021 5.29 PM
root / root
0644
pulse-till-done.js
0.765 KB
28 Sep 2021 5.29 PM
root / root
0644
read-local-package.js
0.321 KB
28 Sep 2021 5.29 PM
root / root
0644
read-user-info.js
2.078 KB
28 Sep 2021 5.29 PM
root / root
0644
save-stack.js
0.341 KB
28 Sep 2021 5.29 PM
root / root
0644
spawn.js
1.377 KB
28 Sep 2021 5.29 PM
root / root
0644
temp-filename.js
0.169 KB
28 Sep 2021 5.29 PM
root / root
0644
umask.js
0.335 KB
28 Sep 2021 5.29 PM
root / root
0644
unix-format-path.js
0.083 KB
28 Sep 2021 5.29 PM
root / root
0644
unsupported.js
2.288 KB
28 Sep 2021 5.29 PM
root / root
0644
usage.js
0.563 KB
28 Sep 2021 5.29 PM
root / root
0644
warn-deprecated.js
0.543 KB
28 Sep 2021 5.29 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF