The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
function color(code, string) {
    'use strict';
    return "\x1b[" + code + "m" + string + "\x1b[0m";
}

function factory(code) {
    'use strict';
    return function (string) {
        return color(code, string);
    };
}

module.exports = {
    bold : factory(1),
    red : factory(31),
    green : factory(32),
    yellow : factory(33),
    blue : factory(34),
    grey : factory(90)
};