diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-03-15 14:10:43 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-04-12 23:23:57 +0200 |
commit | 565fd50b4ac81c8c3fca6a08ffcbc59a4b7b2504 (patch) | |
tree | db8b2acdc3ab3ac7c7b9a67f563dff30022f6ff2 /lib/console.js | |
parent | 57e8793c4393aa3fafd87f289b19078b1918c166 (diff) | |
download | node-new-565fd50b4ac81c8c3fca6a08ffcbc59a4b7b2504.tar.gz |
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 'lib/console.js')
-rw-r--r-- | lib/console.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/console.js b/lib/console.js index 2c35e98223..f4610f745e 100644 --- a/lib/console.js +++ b/lib/console.js @@ -68,7 +68,7 @@ function Console(options /* or: stdout, stderr, ignoreErrors = true */) { stdout, stderr = stdout, ignoreErrors = true, - colorMode = false + colorMode = 'auto' } = options); } else { return new Console({ |