diff options
author | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 22:54:37 +0300 |
---|---|---|
committer | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 22:54:37 +0300 |
commit | 703e03aba33f234712206769f57717ba7d92d23d (patch) | |
tree | 0041f04ccb75bd5379c764e9fe42249fffe75fc3 /node_modules/@malept/cross-spawn-promise/README.md | |
parent | ab6e257e6e9d9a483d7e86f220d8b209a2cd7753 (diff) | |
download | FlashRunner-703e03aba33f234712206769f57717ba7d92d23d.tar.gz FlashRunner-703e03aba33f234712206769f57717ba7d92d23d.tar.zst |
Added export_allowed file to make repository visible in cgit
Diffstat (limited to 'node_modules/@malept/cross-spawn-promise/README.md')
-rw-r--r-- | node_modules/@malept/cross-spawn-promise/README.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/node_modules/@malept/cross-spawn-promise/README.md b/node_modules/@malept/cross-spawn-promise/README.md new file mode 100644 index 0000000..82d4cdb --- /dev/null +++ b/node_modules/@malept/cross-spawn-promise/README.md @@ -0,0 +1,27 @@ +# `@malept/cross-spawn-promise` + +> A promisified version of [`cross-spawn`](https://npm.im/cross-spawn) with slightly different behavior & extra options. + +[](https://github.com/malept/cross-spawn-promise/actions?query=workflow%3ACI) +[](https://www.npmjs.com/package/@malept/cross-spawn-promise) +[](https://codecov.io/gh/malept/cross-spawn-promise) + +## 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. + +## Legal + +This module is licensed under the Apache 2.0 license. |