Skip to content

Commit

Permalink
util: use blue on non-windows systems for number
Browse files Browse the repository at this point in the history
Backport-PR-URL: #19180
PR-URL: #18925
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
devsnek authored and MylesBorins committed Mar 7, 2018
1 parent 39e032f commit 3e8e152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3e8e152

Please sign in to comment.