src/ansi_to_html.js
function toColorHexString(ref) {
    var results = [];

    for (var j = 0, len = ref.length; j < len; j++) {
        results.push(toHexString(ref[j]));
    }

    return '#' + results.join('');
}
function toColorHexString(ref) {
    var results = [];

    for (var j = 0, len = ref.length; j < len; j++) {
        results.push(toHexString(ref[j]));
    }

    return '#' + results.join('');
}
function toColorHexString ( ref ) { var results = [ ] ; for ( var j = 0 , len = ref . length ; j < len ; j ++ ) { results . push ( toHexString ( ref [ j ] ) ) ; } return '#' + results . join ( '' ) ; }
Converts from an array of numbers like [15, 15, 15] to a hex string like 'FFF'
@param {[red, green, blue]} ref
@returns {string}
Converts from an array of numbers like [ 15 15 15 ] to a hex string like FFF