Skip to content
Myr

Improve the "Why" section in readme.md (#537)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent 9bcfa95 · Browse files · 1 file+11 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−10 removed

  • other:+11 added−10 removed

1 file+11 added−10 removed

modified:readme.md+11 added-10 removed
10 unmodified lines
11## Why1213This package improves [`child_process`](https://nodejs.org/api/child_process.html) methods with:1415- Promise interface.16- [Scripts interface](#scripts-interface).15- [Promise interface](#execacommandcommand-options).16- [Scripts interface](#scripts-interface), like `zx`.17- Improved [Windows support](https://github.com/IndigoUnited/node-cross-spawn#why), including [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) binaries.18- Executes [locally installed binaries](#preferlocal) without `npx`.19- [Cleans up](#cleanup) child processes when the parent process ends.20- [Graceful termination](#optionsforcekillaftertimeout).21- Get [interleaved output](#all) from `stdout` and `stderr` similar to what is printed on the terminal.22- [Strips the final newline](#stripfinalnewline) from the output so you don't have to do `stdout.trim()`.18- Supports [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) binaries cross-platform.19- [Improved Windows support.](https://github.com/IndigoUnited/node-cross-spawn#why)20- Higher max buffer. 100 MB instead of 200 KB.21- [Executes locally installed binaries by name.](#preferlocal)22- [Cleans up spawned processes when the parent process dies.](#cleanup)23- [Get interleaved output](#all) from `stdout` and `stderr` similar to what is printed on the terminal. [*(Async only)*](#execasyncfile-arguments-options)24- Convenience methods to [pipe processes' output](#redirect-output-to-a-file)25- [Can specify file and arguments as a single string without a shell](#execacommandcommand-options)23- Convenience methods to pipe processes' [input](#input) and [output](#redirect-output-to-a-file).24- Can specify file and arguments [as a single string](#execacommandcommand-options) without a shell.25- [Verbose mode](#verbose-mode) for debugging.26- More descriptive errors.27- Higher max buffer: 100 MB instead of 1 MB.2829## Install3031```sh
778 unmodified lines