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 c842146

Browse filesBrowse files
gireeshpunathilruyadorno
authored andcommitted
doc: add a note on console stream behavior
Many user reported issues show poor awareness of the nature of console streams. explicitly document that. PR-URL: #55616 Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1978285 commit c842146
Copy full SHA for c842146

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/console.md‎

Copy file name to clipboardExpand all lines: doc/api/console.md
+5-1Lines changed: 5 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ The module exports two specific components:
1919

2020
_**Warning**_: The global console object's methods are neither consistently
2121
synchronous like the browser APIs they resemble, nor are they consistently
22-
asynchronous like all other Node.js streams. See the [note on process I/O][] for
22+
asynchronous like all other Node.js streams. Programs that desire to depend
23+
on the synchronous / asynchronous behavior of the console functions should
24+
first figure out the nature of console's backing stream. This is because the
25+
stream is dependent on the underlying platform and standard stream
26+
configuration of the current process. See the [note on process I/O][] for
2327
more information.
2428

2529
Example using the global `console`:

0 commit comments

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