Command being run.
Arguments to command.
Standard child_process.SpawnOptions.
Safely clear a timer that may be undefined.
A timer that may not be set.
Run a child process using cross-spawn, capturing and returning
stdout and stderr, like exec, in a promise. If an error occurs,
the process is killed by a signal, or the process exits with a
non-zero status, the Promise is rejected. Any provided stdio
option is ignored, being overwritten with ["pipe","pipe","pipe"]
.
Like with child_process.exec, this is not a good choice if the
command produces a large amount of data on stdout or stderr.
name of command, can be a shell script or MS Windows .bat or .cmd
command arguments
standard child_process.SpawnOptions
Promise resolving to exec-like callback arguments having stdout and stderr properties. If an error occurs, exits with a non-zero status, and killed with a signal, the Promise is rejected with an ExecPromiseError.
Cross-platform kill a process and all its children using tree-kill. On win32, signal is ignored since win32 does not support different signals.
ID of process to kill.
optional signal name or number, Node.js default is used if not provided
Call cross-spawn and return a Promise of its result. The result
has the same shape as the object returned by
child_process.spawnSync()
, which means errors are not thrown but
returned in the error
property of the returned object. If your
command will produce lots of output, provide a log to write it to.
Command to run. If it is just an executable name, paths with be searched, batch and command files will be checked, etc. See cross-spawn documentation for details.
Arguments to command.
Standard child_process.SpawnOptions plus a few specific to this implementation.
a Promise that provides information on the child process and
its execution result. If an error occurs, the error
property
of SpawnPromiseReturns will be populated.
Generated using TypeDoc
Convert child process into an informative string.