-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
child_process documentation for stdio #9636
Comments
To be clear: that it can be a String is documented: https://nodejs.org/api/child_process.html#child_process_options_stdio, but not described in the type annotations. |
@sam-github but a bit confusing when |
That fork doesn't support Randomly different APIs that could be the same are maddening :-( |
Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. Fixes: nodejs#9636
Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. Fixes: nodejs#9636
Document that `execFileSync`, `execSync` and `spawnSync` also support `stdio` as an Array. PR-URL: #9637 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. PR-URL: #9701 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Prince John Wesley <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: #9701 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Prince John Wesley <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Document that `execFileSync`, `execSync` and `spawnSync` also support `stdio` as an Array. PR-URL: #9637 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
Document that `execFileSync`, `execSync` and `spawnSync` also support `stdio` as an Array. PR-URL: #9637 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. PR-URL: #9701 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Prince John Wesley <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: #9701 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Prince John Wesley <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
The child_process documentation for
execFileSync
,execSync
andspawnSync
notes thatoptions.stdio
is an array.But it seems it can also be a string, similar to the
stdio
options given tochild_process.spawn
.Actually
execFileSync
,execSync
andspawnSync
all ends up here, where the options are accepted as string or array. See https://github.com/nodejs/node/blob/master/lib/internal/child_process.js#L758The text was updated successfully, but these errors were encountered: