Detect whether the terminal supports color.

interface ColorSupport {
    has16m: boolean;
    has256: boolean;
    hasBasic: boolean;
    level: colors.Level;
}

Properties

has16m: boolean

Return whether Chalk supports Truecolor 16 million colors.

has256: boolean

Return whether Chalk supports ANSI 256 colors.

hasBasic: boolean

Return whether Chalk supports basic 16 colors.

level: colors.Level

The color level used by Chalk.

Generated using TypeDoc