node-colorize
v0.0.2
Published
Lighweight Node.Js library for colorized console output
Downloads
6
Maintainers
Readme
Colorize
Lighweight Node.Js library for colorized console output
I didn't publish this on npm, but you can use basic functions by including index.js in your project
const { Colorize } = require('./index.js');
Usage
Create new instanse of Colorize class:
const colored = new Colorize();
Output colored text in console by using color methods:
colored.green('Hello world');
Use random style from colored.styles:
colored.random('Hello world');
Every letter is colored in random color from colored.styles:
colored.allColors('Hello world');
Also you can use custom escape sequense or style saved in colored.styles:
colored.styled(colored.styles.underline, 'Hello world');