From 565fd50b4ac81c8c3fca6a08ffcbc59a4b7b2504 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 15 Mar 2018 14:10:43 +0100 Subject: 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 Reviewed-By: James M Snell --- doc/api/console.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/api/console.md') diff --git a/doc/api/console.md b/doc/api/console.md index cce2a4eb6e..59e5ae3685 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 -- cgit v1.2.3