node-colorize

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i node-colorize

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

5.9 kB

Total Files

5

Last publish

Collaborators

  • nekosuimin