0.0.4 • Published 8 years ago

color-away v0.0.4

Weekly downloads
4
License
GPL-3.0
Repository
-
Last release
8 years ago

Install/Documentation

$ npm install color-away --save

Usage

var ca = require("color-away")

// Console log your style of choice.
// Format:

ca.log([FORMAT #], [BACKGROUND # ], [COLOR #], "message");
ca.log([1], [2], [3], "This message will send");
[1] = Bold, [2] = Red, [3] Green

// If you simply want only a color text, without background, or format EX:
ca.log([FORMAT 0], [BACKGROUND 0], COLOR #, "message");
[0] = none

Library / Color Reference

Background : Numbers

Nothing [0]
Black [1]
Red [2]
Green [3]
Yellow [4]
Blue [5]
Magenta [6]
Cyan [7]
Light Grey [8]
Dark Grey [9]
Light Red [10]
Light Green [11]
Light Yellow [12]
Light Blue [13]
Light Magenta [14]
Light Cyan [15]
White [16]

Font Color : Numbers

Nothing [0]
Black [1]
Red [2]
Green [3]
Yellow [4]
Blue [5]
Magenta [6]
Cyan [7]
Light Grey [8]
Dark Grey [9]
Light Red [10]
Light Green [11]
Light Yellow [12]
Light Blue [13]
Light Magenta [14]
Light Cyan [15]
White [16]

Format : Numbers

Nothing [0]
Bold [1]
Dim [21]
Underlined [3]
Blink [4]
Inverted [5]
Hidden [6]