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

Function exec

lib/child_process.js:234–239  ·  view source on GitHub ↗

* Spawns a shell executing the given command. * @param {string} command * @param {{ * cmd?: string; * env?: Record ; * encoding?: string; * shell?: string; * signal?: AbortSignal; * timeout?: number; * maxBuffer?: number; * killSignal?: string | number; *

(command, options, callback)

Source from the content-addressed store, hash-verified

232 * @returns {ChildProcess}
233 */
234function exec(command, options, callback) {
235 const opts = normalizeExecArgs(command, options, callback);
236 return module.exports.execFile(opts.file,
237 opts.options,
238 opts.callback);
239}
240
241const customPromiseExecFunction = (orig) => {
242 return assignFunctionName(orig.name, function(...args) {

Callers 15

debug.pyFile · 0.50
fake_exc_infoFunction · 0.50
from_codeMethod · 0.50
utils.pyFile · 0.50
compiler.pyFile · 0.50
_compat.pyFile · 0.50
childProcessExecStdoutFunction · 0.50
expectFunction · 0.50
childShouldThrowAndAbortFunction · 0.50
runAbFunction · 0.50

Calls 1

normalizeExecArgsFunction · 0.85

Tested by 2

testFunction · 0.40
testFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…