Chroma - Simple terminal colors for Node.js
Contents
Install
npm install kagami
##Introduction
Chroma is a quick and easy way to print colors in Node.js terminal applications.
console; //My favorite colors are blue and white!
Chroma supports the following ASCII colors:
- Black
- Red
- Green
- Yellow
- Blue
- Magenta
- Cyan
- White
##API
###chroma \[color\]() Returns the given text wrapped in the correct ASCII color.
Usage:
chroma [color]( text )
console;
###chroma() Returns a generator function that can be used to produce the ASCII color that is closest to the supplied value. Accepts Hex and RGB values!
Usage:
chroma ( hex string ) ** chroma ( red value, green value, blue value )**
var blueifier = ;var redifier = ; console;console;
##License
Chroma is MIT licensed. You can read the license here.