Skip to content

Lighweight Node.Js library for colorized console output

License

Notifications You must be signed in to change notification settings

akaeyuhi/Colorize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colorize

Lighweight Node.Js library for colorized console output

Install

$ npm i node-colorize -g

Usage

Import module by using

const Colorize = require('node-colorize');

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

About

Lighweight Node.Js library for colorized console output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published