Sha256: a8e4c241076d8076ed584e78d7675e071acc3053e6301dc40b9d126276f513d5
Contents?: true
Size: 372 Bytes
Versions: 69
Compression:
Stored size: 372 Bytes
Contents
var chalk = require('chalk'); var templateColors = [ 'yellow', 'green', 'cyan', 'red', 'white', 'magenta' ]; function colors(Handlebars) { templateColors.forEach(function (color) { Handlebars.registerHelper(color, function (context) { return chalk[color](context.fn(this)); }); }); } module.exports = colors;
Version data entries
69 entries across 69 versions & 2 rubygems