◆
Node.js chalk 终端颜色与修饰符参数速查
Modifiers
reset- Resets the current color chain.bold- Make text bold.dim- Emitting only a small amount of light.italic- Make text italic. (Not widely supported)underline- Make text underline. (Not widely supported)inverse- Inverse background and foreground colors.hidden- Prints the text, but makes it invisible.strikethrough- Puts a horizontal line through the center of the text. (Not widely supported)visible- Prints the text only when Chalk has a color level > 0. Can be useful for things that are purely cosmetic.
Colors
blackredgreenyellowbluemagentacyanwhiteblackBright(alias:gray,grey)redBrightgreenBrightyellowBrightblueBrightmagentaBrightcyanBrightwhiteBright
Background colors
bgBlackbgRedbgGreenbgYellowbgBluebgMagentabgCyanbgWhitebgBlackBright(alias:bgGray,bgGrey)bgRedBrightbgGreenBrightbgYellowBrightbgBlueBrightbgMagentaBrightbgCyanBrightbgWhiteBright

留言板
0 条留言对话,从你开始
还没有留言。分享一个想法,或只是打声招呼。