Skip to content

Commit 3fa1fb1

Browse files
committed
Use latest API of supports-color.
Signed-off-by: Eric Wang <[email protected]>
1 parent 93f0ed0 commit 3fa1fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/chalk.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ var style = require('ansi-styles');
33
var supportsColor = require('supports-color');
44

55
var chalk = {
6-
enabled: supportsColor,
7-
use256: supportsColor && supportsColor.has256,
6+
enabled: supportsColor.stdout,
7+
use256: supportsColor.stdout && supportsColor.stdout.has256,
88
themes: {},
99
theme: {}
1010
};

0 commit comments

Comments
 (0)