From 3e8e1524acd978e51c2aace9cb154b3b179fc067 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Wed, 21 Feb 2018 20:45:57 -0600 Subject: [PATCH] util: use blue on non-windows systems for number Backport-PR-URL: https://github.com/nodejs/node/pull/19180 PR-URL: https://github.com/nodejs/node/pull/18925 Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- lib/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 318a4cef24c93d..cd6321cfe5270e 100644 --- a/lib/util.js +++ b/lib/util.js @@ -333,9 +333,10 @@ inspect.colors = Object.assign(Object.create(null), { }); // Don't use 'blue' not visible on cmd.exe +const windows = process.platform === 'win32'; inspect.styles = Object.assign(Object.create(null), { 'special': 'cyan', - 'number': 'yellow', + 'number': windows ? 'yellow' : 'blue', 'boolean': 'yellow', 'undefined': 'grey', 'null': 'bold',