Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4658545

Browse filesBrowse files
Trottgibfahn
authored andcommitted
doc: improve text for Console constructor
Make text for Console constructor more precise. PR-URL: #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>
1 parent 947d3d2 commit 4658545
Copy full SHA for 4658545

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/console.md‎

Copy file name to clipboardExpand all lines: doc/api/console.md
+3-4Lines changed: 3 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ const { Console } = console;
8181
* `stdout` {Writable}
8282
* `stderr` {Writable}
8383

84-
Creates a new `Console` by passing one or two writable stream instances.
85-
`stdout` is a writable stream to print log or info output. `stderr`
86-
is used for warning or error output. If `stderr` is not passed, warning and error
87-
output will be sent to `stdout`.
84+
Creates a new `Console` with one or two writable stream instances. `stdout` is a
85+
writable stream to print log or info output. `stderr` is used for warning or
86+
error output. If `stderr` is not provided, `stdout` is used for `stderr`.
8887

8988
```js
9089
const output = fs.createWriteStream('./stdout.log');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.