A promisified version of cross-spawn with slightly different behavior & extra options.
APACHE-2.0 License
@malept/cross-spawn-promise
A promisified version of
cross-spawn
with slightly different behavior & extra options.
If the spawned process exits with a non-zero code, an ExitCodeError
is thrown with the original
command, code, stdout
, and stderr
as properties.
If the spawned process is terminated by a signal on non-Windows platforms, an ExitSignalError
is
thrown with the original command, signal name, stdout
, and stderr
as properties.
logger
: a Function
such as console.log
or debug(name)
to log some informationupdateErrorCallback
: a callback which mutates the error before it is re-thrown. Most commonly,ENOENT
error to provide a more human-friendlyThis module is licensed under the Apache 2.0 license.