Mixing with stdin
and stderr stdout
about readable or writable in Child process spawn API options.stdio doc #56623
Open
Description
page link: https://nodejs.org/api/child_process.html#optionsstdio
When descripting the available value of Stream Object, threre are some wrong notes:
-
"While it is technically possible to pass stdin as a writable or stdout/stderr as readable, it is not recommended."
Maybe the actual meaning is "While it is technically possible to pass stdin as a readable or stdout/stderr as writable, it is not recommended." -
"e.g., passing a readable stream where a writable stream is expected"