Skip to content

Commit 3e8e152

Browse files
devsnekMylesBorins
authored andcommitted
util: use blue on non-windows systems for number
Backport-PR-URL: #19180 PR-URL: #18925 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 39e032f commit 3e8e152

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/util.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,10 @@ inspect.colors = Object.assign(Object.create(null), {
333333
});
334334

335335
// Don't use 'blue' not visible on cmd.exe
336+
const windows = process.platform === 'win32';
336337
inspect.styles = Object.assign(Object.create(null), {
337338
'special': 'cyan',
338-
'number': 'yellow',
339+
'number': windows ? 'yellow' : 'blue',
339340
'boolean': 'yellow',
340341
'undefined': 'grey',
341342
'null': 'bold',

0 commit comments

Comments
 (0)