Skip to content
Myr

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

2 files+4 added−4 removed

modified:index.d.ts+2 added-2 removed
123 unmodified lines
124 readonly stdin?: StdinOption;125126 /**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 lines
143 readonly stdout?: StdoutStderrOption;144145 /**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 lines
modified:readme.md+2 added-2 removed
591 unmodified lines
592Type: `string | number | stream.Writable | WritableStream | URL`\593Default: `pipe`594595[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 lines
611Type: `string | number | stream.Writable | WritableStream | URL`\612Default: `pipe`613614[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