Detect whether the terminal supports color.

Hierarchy

  • ColorSupport

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: Level

The color level used by Chalk.

Generated using TypeDoc