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.24 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.23 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.20 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.19 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.18 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.17 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.16 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.15 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.14 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.13 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.12 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.11 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.10 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.9 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.8 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.7 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.6 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.5 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.4 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js
passenger-6.0.3 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/rainbow.js