Sha256: 476bfaac2c2e1f3c7e297ecf0384a922168aac5f2fe933cd2a5afa4ab661ccef

Contents?: true

Size: 344 Bytes

Versions: 88

Compression:

Stored size: 344 Bytes

Contents

var colors = require('../colors');

module['exports'] = (function () {
  var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta']; //RoY G BiV
  return function (letter, i, exploded) {
    if (letter === " ") {
      return letter;
    } else {
      return colors[rainbowColors[i++ % rainbowColors.length]](letter);
    }
  };
})();

Version data entries

88 entries across 86 versions & 9 rubygems

Version Path
passenger-6.0.2 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
ela-4.1.6 node_modules/colors/lib/maps/rainbow.js
ela-4.1.5 node_modules/colors/lib/maps/rainbow.js
ela-4.1.4 node_modules/colors/lib/maps/rainbow.js
ela-4.1.3 node_modules/colors/lib/maps/rainbow.js
passenger-6.0.1 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
optimacms-0.4.3 spec/dummy/node_modules/colors/lib/maps/rainbow.js
optimacms-0.4.2 spec/dummy/node_modules/colors/lib/maps/rainbow.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/colors/lib/maps/rainbow.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/cli-table/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.0 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-5.3.7 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-5.3.6 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
ela-4.1.2 node_modules/colors/lib/maps/rainbow.js
ela-4.1.1 node_modules/colors/lib/maps/rainbow.js
ela-4.1.0 node_modules/colors/lib/maps/rainbow.js
locomotivecms-3.4.0 app/javascript/node_modules/cli-table/node_modules/colors/lib/maps/rainbow.js
locomotivecms-3.4.0 app/javascript/node_modules/colors/lib/maps/rainbow.js
passenger-5.3.5 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
cortex-0.1.3 spec/dummy/node_modules/colors/lib/maps/rainbow.js