doc: improve text for Console constructor
Make text for Console constructor more precise. PR-URL: https://github.com/nodejs/node/pull/17519 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
af5cfaf402
commit
c3a997038c
@ -81,10 +81,9 @@ const { Console } = console;
|
||||
* `stdout` {Writable}
|
||||
* `stderr` {Writable}
|
||||
|
||||
Creates a new `Console` by passing one or two writable stream instances.
|
||||
`stdout` is a writable stream to print log or info output. `stderr`
|
||||
is used for warning or error output. If `stderr` is not passed, warning and error
|
||||
output will be sent to `stdout`.
|
||||
Creates a new `Console` with one or two writable stream instances. `stdout` is a
|
||||
writable stream to print log or info output. `stderr` is used for warning or
|
||||
error output. If `stderr` is not provided, `stdout` is used for `stderr`.
|
||||
|
||||
```js
|
||||
const output = fs.createWriteStream('./stdout.log');
|
||||
|
Loading…
x
Reference in New Issue
Block a user