You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
.. | ||
dist/src | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
package.json | 2 years ago |
README.md
@malept/cross-spawn-promise
A promisified version of
cross-spawn
with slightly different behavior & extra options.
Different Behavior
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.
Extra Options
logger
: aFunction
such asconsole.log
ordebug(name)
to log some information about the spawned process.updateErrorCallback
: a callback which mutates the error before it is re-thrown. Most commonly, this is used to augment the error message ofENOENT
error to provide a more human-friendly message as to how to install the missing executable.
Legal
This module is licensed under the Apache 2.0 license.