◆
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

还没有留言,来发表第一条吧~