Improve documentation of `pipe` option (#637)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by ehmicky · committed by GitHub · parent 6ea7cd7 · Browse files · 2 files·+4 added−4 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+4 added−4 removed
- other:+4 added−4 removed
Provenance
- Commit
9632b38- Tree
d348b42- Author
ehmicky <ehmicky@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
6ea7cd7
2 files changed+4 added−4 removed
modified:index.d.ts+2 added-2 removed
123 unmodified lines124 readonly stdin?: StdinOption;125 126 /**127 [How to setup](https://nodejs.org/api/child_process.html#child_process_options_stdio) the child process' standard output. This can be:128- - `'pipe'`: Sets [`childProcess.stdout`](https://nodejs.org/api/child_process.html#subprocessstdout) stream.128+ - `'pipe'`: Sets `childProcessResult.stdout` (as a string or `Uint8Array`) and [`childProcess.stdout`](https://nodejs.org/api/child_process.html#subprocessstdout) (as a stream).129 - `'overlapped'`: Like `'pipe'` but asynchronous on Windows.130 - `'ignore'`: Do not use `stdout`.131 - `'ipc'`: Sets an [IPC channel](https://nodejs.org/api/child_process.html#subprocesssendmessage-sendhandle-options-callback). You can also use `execaNode()` instead.132 - `'inherit'`: Re-use the current process' `stdout`.10 unmodified lines143 readonly stdout?: StdoutStderrOption;144 145 /**146 [How to setup](https://nodejs.org/api/child_process.html#child_process_options_stdio) the child process' standard error. This can be:147- - `'pipe'`: Sets [`childProcess.stderr`](https://nodejs.org/api/child_process.html#subprocessstderr) stream.147+ - `'pipe'`: Sets `childProcessResult.stderr` (as a string or `Uint8Array`) and [`childProcess.stderr`](https://nodejs.org/api/child_process.html#subprocessstderr) (as a stream).148 - `'overlapped'`: Like `'pipe'` but asynchronous on Windows.149 - `'ignore'`: Do not use `stderr`.150 - `'ipc'`: Sets an [IPC channel](https://nodejs.org/api/child_process.html#subprocesssendmessage-sendhandle-options-callback). You can also use `execaNode()` instead.151 - `'inherit'`: Re-use the current process' `stderr`.918 unmodified linesmodified:readme.md+2 added-2 removed
591 unmodified lines592 Type: `string | number | stream.Writable | WritableStream | URL`\593 Default: `pipe`594 595 [How to setup](https://nodejs.org/api/child_process.html#child_process_options_stdio) the child process' standard output. This can be:596-- `'pipe'`: Sets [`childProcess.stdout`](https://nodejs.org/api/child_process.html#subprocessstdout) stream.596+- `'pipe'`: Sets [`childProcessResult.stdout`](#stdout) (as a string or `Uint8Array`) and [`childProcess.stdout`](https://nodejs.org/api/child_process.html#subprocessstdout) (as a stream).597 - `'overlapped'`: Like `'pipe'` but asynchronous on Windows.598 - `'ignore'`: Do not use `stdout`.599 - `'ipc'`: Sets an [IPC channel](https://nodejs.org/api/child_process.html#subprocesssendmessage-sendhandle-options-callback). You can also use [`execaNode()`](#execanodescriptpath-arguments-options) instead.600 - `'inherit'`: Re-use the current process' `stdout`.10 unmodified lines611 Type: `string | number | stream.Writable | WritableStream | URL`\612 Default: `pipe`613 614 [How to setup](https://nodejs.org/api/child_process.html#child_process_options_stdio) the child process' standard error. This can be:615-- `'pipe'`: Sets [`childProcess.stderr`](https://nodejs.org/api/child_process.html#subprocessstderr) stream.615+- `'pipe'`: Sets [`childProcessResult.stderr`](#stderr) (as a string or `Uint8Array`) and [`childProcess.stderr`](https://nodejs.org/api/child_process.html#subprocessstderr) (as a stream).616 - `'overlapped'`: Like `'pipe'` but asynchronous on Windows.617 - `'ignore'`: Do not use `stderr`.618 - `'ipc'`: Sets an [IPC channel](https://nodejs.org/api/child_process.html#subprocesssendmessage-sendhandle-options-callback). You can also use [`execaNode()`](#execanodescriptpath-arguments-options) instead.619 - `'inherit'`: Re-use the current process' `stderr`.242 unmodified lines