Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e8e152

Browse filesBrowse 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
Copy full SHA for 3e8e152

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎lib/util.js‎

Copy file name to clipboardExpand all lines: lib/util.js
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.