From cd5b9d8884599875657e64f023e5873f873ca131 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhus Date: Wed, 16 Nov 2016 19:06:15 +0100 Subject: [PATCH] doc: child_process .stdio accepts a String type Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. Fixes: https://github.com/nodejs/node/issues/9636 --- doc/api/child_process.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index e56c03a2bfc4f7..e90f5286ab1eda 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -575,7 +575,7 @@ added: v0.11.12 * `input` {String|Buffer} The value which will be passed as stdin to the spawned process - supplying this value will override `stdio[0]` - * `stdio` {Array} Child's stdio configuration. (Default: `'pipe'`) + * `stdio` {String | Array} Child's stdio configuration. (Default: `'pipe'`) - `stderr` by default will be output to the parent process' stderr unless `stdio` is specified * `env` {Object} Environment key-value pairs @@ -613,7 +613,7 @@ added: v0.11.12 * `input` {String|Buffer} The value which will be passed as stdin to the spawned process - supplying this value will override `stdio[0]` - * `stdio` {Array} Child's stdio configuration. (Default: `'pipe'`) + * `stdio` {String | Array} Child's stdio configuration. (Default: `'pipe'`) - `stderr` by default will be output to the parent process' stderr unless `stdio` is specified * `env` {Object} Environment key-value pairs @@ -657,7 +657,7 @@ added: v0.11.12 * `input` {String|Buffer} The value which will be passed as stdin to the spawned process - supplying this value will override `stdio[0]` - * `stdio` {Array} Child's stdio configuration. + * `stdio` {String | Array} Child's stdio configuration. * `env` {Object} Environment key-value pairs * `uid` {Number} Sets the user identity of the process. (See setuid(2).) * `gid` {Number} Sets the group identity of the process. (See setgid(2).)