#colorado
ridiculously simple console string styling in nodejs.
aside: named after a cool state
###Install
npm install colorado
###Usage
var colorado = require('colorado');
colorado
is a function that takes any number of strings as arguments.
Pass in a string to add plain text:
var boring = colorado('blah');
console.log(boring);
Use double handlebars to specify styles (comma separated):
var dangerous = colorado('{{red,bold,blink}}danger!');
console.log(dangerous);
If you already know the code number for a style, pass it as a number:
var justAsDangerous = colorado('{{31,1,5}}danger!');
console.log(justAsDangerous);
You can inline a whole bunch of them, and mix and match names and code numbers:
var obviouslyPractical = colorado('{{blue,104}}blue{{blink}}flashing{{1,49}}emphasized{{reset}}normal')
console.log(obviouslyPractical);
Styles are reset between each string passed:
var cuteStory = colorado(
'I was reading all this boring text and then... ',
'{{bold,yellow,redBG}} BAM! ',
'{{36}} everything looked cyan to me...'
);
console.log(cuteStory);