child_process.js 1004 B

1234567891011121314
  1. var child_process = require("child_process");
  2. var promisify = require("./_promisify.js");
  3. var bind = function(c, f) { return f && f.bind(c); };
  4. Object.defineProperties(module.exports, {
  5. ChildProcess: { enumerable: true, value: child_process.ChildProcess },
  6. //_forkChild: // skipping
  7. exec: { enumerable: true, value: promisify(child_process, child_process.exec, 1, {"pattern":["stdout","stderr"],"returnsObject":true}) },
  8. execFile: { enumerable: true, value: promisify(child_process, child_process.execFile, 1, {"pattern":["stdout","stderr"],"returnsObject":true}) },
  9. execFileSync: { enumerable: true, value: bind(child_process, child_process.execFileSync) },
  10. execSync: { enumerable: true, value: bind(child_process, child_process.execSync) },
  11. fork: { enumerable: true, value: bind(child_process, child_process.fork) },
  12. spawn: { enumerable: true, value: bind(child_process, child_process.spawn) },
  13. spawnSync: { enumerable: true, value: bind(child_process, child_process.spawnSync) },
  14. });