Use a 8-bit unsigned number to set background color.
ReadonlybgReadonlybgReadonlybgReadonlybgReadonlybgReadonlybgReadonlybgReadonlybgReadonlybgReadonlybgUse HEX value to set background color.
Hexadecimal value representing the desired color.
ReadonlybgReadonlybgReadonlybgReadonlybgUse RGB values to set background color.
ReadonlybgReadonlybgReadonlybgReadonlybgReadonlyblackReadonlyblackReadonlyblueReadonlyblueReadonlyboldModifier: Make the text bold.
ReadonlycyanReadonlycyanReadonlydimModifier: Make the text have lower opacity.
ReadonlygrayReadonlygreenReadonlygreenReadonlygreyUse HEX value to set text color.
Hexadecimal value representing the desired color.
ReadonlyhiddenModifier: Print the text but make it invisible.
ReadonlyinverseModifier: Invert background and foreground colors.
ReadonlyitalicModifier: Make the text italic. (Not widely supported)
The color support for Chalk.
By default, color support is automatically detected based on the environment.
Levels:
0 - All colors disabled.1 - Basic 16 colors support.2 - ANSI 256 colors support.3 - Truecolor 16 million colors support.Logger原始方法
打印 DEGUB 日志
打印 ERROR 日志
打印 FATAL 日志
打印 INFO 日志
打印 MARK 日志
打印 TRACE 日志
打印 WARN 日志
ReadonlymagentaReadonlymagentaReadonlyoverlineModifier: Put a horizontal line above the text. (Not widely supported)
ReadonlyredReadonlyredReadonlyresetModifier: Reset the current style.
Use RGB values to set text color.
ReadonlystrikethroughModifier: Puts a horizontal line through the center of the text. (Not widely supported)
ReadonlyunderlineModifier: Put a horizontal line below the text. (Not widely supported)
ReadonlyvisibleModifier: Print the text only when Chalk has a color level above zero.
Can be useful for things that are purely cosmetic.
ReadonlywhiteReadonlywhiteReadonlyyellowReadonlyyellow
Use an 8-bit unsigned number to set text color.