MCPcopy Index your code
hub / github.com/nodejs/node / run

Function run

test/fixtures/eval/eval_messages.js:28–36  ·  view source on GitHub ↗
(cmd, strict, cb)

Source from the content-addressed store, hash-verified

26const spawn = require('child_process').spawn;
27
28function run(cmd, strict, cb) {
29 const args = [];
30 if (strict) args.push('--use_strict');
31 args.push('-pe', cmd);
32 const child = spawn(process.execPath, args);
33 child.stdout.pipe(process.stdout);
34 child.stderr.pipe(process.stdout);
35 child.on('close', cb);
36}
37
38const queue =
39 [ 'with(this){__filename}',

Callers 8

goFunction · 0.70
run_inspect.jsFile · 0.50
recursive_run.jsFile · 0.50
runner.mjsFile · 0.50
runner.mjsFile · 0.50

Calls 3

spawnFunction · 0.50
pushMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected