Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-03-15 16:10:43 +0300
committerAnna Henningsen <anna@addaleax.net>2018-04-13 00:23:57 +0300
commit565fd50b4ac81c8c3fca6a08ffcbc59a4b7b2504 (patch)
treedb8b2acdc3ab3ac7c7b9a67f563dff30022f6ff2 /doc/api/console.md
parent57e8793c4393aa3fafd87f289b19078b1918c166 (diff)
console: auto-detect color support by default
This makes Node pretty-print objects with color by default when `console.log()`-ing them. PR-URL: https://github.com/nodejs/node/pull/19372 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/console.md')
-rw-r--r--doc/api/console.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/console.md b/doc/api/console.md
index cce2a4eb6ed..59e5ae36856 100644
--- a/doc/api/console.md
+++ b/doc/api/console.md
@@ -100,7 +100,7 @@ changes:
Setting to `true` enables coloring while inspecting values, setting to
`'auto'` will make color support depend on the value of the `isTTY` property
and the value returned by `getColorDepth()` on the respective stream.
- **Default:** `false`
+ **Default:** `'auto'`
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