Sha256: aebf6ae23ae92fc1e2575001ff4cea7c768af3fb504eb3d0053f970957586584

Contents?: true

Size: 352 Bytes

Versions: 88

Compression:

Stored size: 352 Bytes

Contents

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

module['exports'] = (function () {
  var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'];
  return function(letter, i, exploded) {
    return letter === " " ? letter : colors[available[Math.round(Math.random() * (available.length - 1))]](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/random.js
passenger-6.0.23 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.20 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.19 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.18 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.17 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.16 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.15 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.14 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.13 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.12 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.11 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.10 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.9 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.8 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.7 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.6 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.5 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.4 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js
passenger-6.0.3 src/nodejs_supportlib/vendor-copy/winston/node_modules/colors/lib/maps/random.js