node-styl
simple bash console syling
Install :
npm install node-styl
Add colors and styles to your logs :
const styl = ;...console;console;
Use preformated style :
...var title = greenboldblueBGtext;console;console;
Clean rendered styles to handle text length :
...var styled = greenbold+""+;var text = styl;console;
NB: styled text should be at least merged with an empty string to render.
available style properties are :
- styles :
- bold
- italic
- underline
- inverse
- strikethrough
- text colors :
- white
- grey
- black
- blue
- cyan
- green
- magenta
- red
- yellow
- background colors :
- whiteBG
- greyBG
- blackBG
- blueBG
- cyanBG
- greenBG
- magentaBG
- redBG
- yellowBG