Color Output in NodeJS
Colout is a Node utility that allows you to output color text in console. In the main, it can be used for debugging server applications.
Getting started
Install via npm:
npm install colout
Include:
var colout = ;
Example:
colout;colout;colout;colout;colout;colout;colout;colout;
Supported any types of parameters:
colout;
You also nothing to prevent set methods with their names
colout ;
and their use
colout;colout;colout;colout;
If you want to display data in a single row with different colors then use diff ():
colout;
Can be used eight standart colors:
white
red
green
blue
magenta
grey
yellow
cyan
Objects and arrays may be any nesting level:
var arr = 10 20 30 40 'numbers': 1 2 3;var obj = 'first': 'second': 'third': 'arr': arr ;colout;colout;
Methods:
- white()
- red()
- green()
- blue()
- magenta()
- grey()
- yellow()
- cyan()
- set()
- diff()
white()
, red()
, green()
, blue()
, magenta()
, grey()
, yellow()
, cyan()
- paint content in the same color.
set(name_method, text_color)
- make your method.
diff()
- display data in a single row with different colors.