colors.js/lib/maps/america.js
Marak dfb15b5538 [refactor] [major] Code cleanup. Node has changed a bit since 2010.
[api] Added ability to safely require colors without messing with String.prototype
[api] Removed browser functionality
[dist] Add travis file
2014-09-30 22:41:24 +02:00

12 lines
307 B
JavaScript

var colors = require('../colors');
module['exports'] = (function() {
return function (letter, i, exploded) {
if(letter === " ") return letter;
switch(i%3) {
case 0: return colors.red(letter);
case 1: return colors.white(letter)
case 2: return colors.blue(letter)
}
}
})();