Skip to main content

Function: isColorSupported()

isColorSupported(): boolean

Check whether color output is supported.

Returns false if NO_COLOR environment variable is set, true if FORCE_COLOR is set, otherwise checks if stdout is a terminal.

Returns

boolean