Type that can react to the exit of a spawned child process, after Node has terminated without reporting an error. This is necessary only for commands that can return a non-zero exit code on success.
Default ErrorFinder that regards return code 0 as success
Convenience function to create a spawn command from a sentence such as "npm run compile" Does not respect quoted arguments. Use spawnAndWatch passing it the command and argument array if your command arguments have spaces, etc.
command and argument string
Clear provided timers and reject a promise.
Clear provided timers and resolve a promise.
Clear provided timers. It checks to make sure the timers are defined before clearing them.
the timers to clear.
Cross-platform kill. On win32, tree-kill is used and signal is ignored since win32 does not support different signals. On other platforms, ChildProcess.kill(signal) is used.
child process to kill
optional signal, Node.js default is used if not provided
Kill the child process and wait for it to shut down. This can take
a while as child processes may have shut down hooks. On win32,
tree-kill is used and the Promise is rejected if the process(es) do(es)
not exit within
wait milliseconds. On other platforms, first the
child process is sent the default signal, SIGTERM. After
milliseconds, it is sent SIGKILL. After another
milliseconds, an error is thrown.
the number of milliseconds to wait before sending SIGKILL and then erroring, default is 30000 ms
Spawn a process, log its output, and wait for it to exit, asynchronously. It is spawned using cross-spawn.
command to run
standard spawn options
log to write output to
toString for a SpawnCommand. Used for logging.
Generated using TypeDoc