node-styl-rgb
simple bash console rgb syling. like node-styl for 256 and 16m color terminals.
Install :
npm install node-styl-rgb
Add colors and styles to your logs :
const styl = c16m;...console;
Use preformated style :
...var title = underlinetext;console;console;
Clean rendered styles to handle text length :
...var styled = "this is "+;var text = styl;console;
available rgb displays are :
- types :
- c256 : 256 colors.
require('node-styl-rgb').c256
- c16m : 16M colors.
require('node-styl-rgb').c16m
- c256 : 256 colors.
const styl = ;
is equivalent to
const styl = c256;
available style properties are :
- styles :
- bold
- italic
- underline
- inverse
- strikethrough
available methods are :
- methods :
- front : sets rgb front color.
- back : sets rgb back color.
- text : sets text.