颜色
Ansi-code color 包含@r 样式颜色代码的字符串。
用法:
strcolour = require ( 'strcolour' ) ;
console . log ( strcolour ( "Rover says hello @bEarth@n from the @rRed Planet@n!" ) ) ;
默认代码是:
@n - reset
@R - bright red
@r - dark red
@B - blue
@b - dark blue
@W - bright white
@w - white
@C - bright cyan
@c - dark cyan
@G - bright green
@g - dark green
@M - pink/magenta
@m - purple/magenta
@Y - yel
评论0
最新资源