Skip to content
Myr

Improve documentation of `maxBuffer` (#921)

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

authored by ehmicky · committed by GitHub · parent 8dfdd91 · Browse files · 2 files+15 added−3 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+15 added−3 removed

  • other:+15 added−3 removed

2 files+15 added−3 removed

modified:index.d.ts+7 added-1 removed
492 unmodified lines
493 */494 readonly timeout?: number;495496 /**497 Largest amount of data in bytes allowed on `stdout`, `stderr` and `stdio`. Default: 100 MB.497 Largest amount of data allowed on `stdout`, `stderr` and `stdio`.498499 This is measured:500 - By default: in [characters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length).501 - If the `encoding` option is `'buffer'`: in bytes.502 - If the `lines` option is `true`: in lines.503 - If a transform in object mode is used: in objects.504505 @default 100_000_000506 */507 readonly maxBuffer?: number;508
1027 unmodified lines
modified:readme.md+8 added-2 removed
921 unmodified lines
922923#### maxBuffer924925Type: `number`\926Default: `100_000_000` (100 MB)926Default: `100_000_000`927928Largest amount of data in bytes allowed on [`stdout`](#stdout), [`stderr`](#stderr) and [`stdio`](#stdio).928Largest amount of data allowed on [`stdout`](#stdout), [`stderr`](#stderr) and [`stdio`](#stdio).929930This is measured:931- By default: in [characters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length).932- If the [`encoding` option](#encoding) is `'buffer'`: in bytes.933- If the [`lines` option](#lines) is `true`: in lines.934- If a [transform in object mode](docs/transform.md#object-mode) is used: in objects.935936#### ipc937938Type: `boolean`\939Default: `true` if the [`node`](#node) option is enabled, `false` otherwise
227 unmodified lines