colorout.js
simple Nodejs library to log colorful messages to the console. supports 16-colors.
usage
//requireconst colorout = ;//require COLOR AND TYPE CONSTANTSconst TYPE COLOR = colorout; /** * * @param { COLOR.[NAME] } foregroundColor? //constant * @param { COLOR.[NAME] } backgroundColor? //constant * @param { TYPE.[NAME] } fontType? //constant **///colorout(foregroundColor ,backgroundColor ,fontType); const green = ;const error = ;const blue = ; green;error //*new* or mix colors green;
TYPE
CONSTANTS
Font normal bold dim underline inverted hidden
COLOR
Constants
foreground/background 16 colors
The prefix b
before the color name stands for bright
default black red green yellow blue magenta cyan white bBlack bRed bGreen bYellow bBlue bMagenta bCyan bWhite