0.0.2 • Published 4 years ago

node-colorize v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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');