CityBEM-CityLayers-SaeedRay.../node_modules/@malept/cross-spawn-promise
2024-11-05 15:01:14 -05:00
..
dist/src This commit pushes the node_modules folder separately due to its large size. 2024-11-05 15:01:14 -05:00
LICENSE This commit pushes the node_modules folder separately due to its large size. 2024-11-05 15:01:14 -05:00
package.json This commit pushes the node_modules folder separately due to its large size. 2024-11-05 15:01:14 -05:00
README.md This commit pushes the node_modules folder separately due to its large size. 2024-11-05 15:01:14 -05:00

@malept/cross-spawn-promise

A promisified version of cross-spawn with slightly different behavior & extra options.

CI NPM package codecov

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: a Function such as console.log or debug(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 of ENOENT error to provide a more human-friendly message as to how to install the missing executable.

This module is licensed under the Apache 2.0 license.