lib/altshift/cli/style.js
function applyStyle(str, property, value) {
    var styleDefinition = CONSOLE_STYLES[property][value];

    //No style defined return non modified string
    if (styleDefinition === null) {
        return str;
    }

    return ESCAPE + '[' + styleDefinition[0] + 'm' + str + ESCAPE + '[' + styleDefinition[1] + 'm';
}
function applyStyle(str, property, value) {
    var styleDefinition = CONSOLE_STYLES[property][value];

    //No style defined return non modified string
    if (styleDefinition === null) {
        return str;
    }

    return ESCAPE + '[' + styleDefinition[0] + 'm' + str + ESCAPE + '[' + styleDefinition[1] + 'm';
}
function applyStyle ( str , property , value ) { var styleDefinition = CONSOLE_STYLES [ property ] [ value ] ; //No style defined return non modified string if ( styleDefinition === null ) { return str ; } return ESCAPE + '[' + styleDefinition [ 0 ] + 'm' + str + ESCAPE + '[' + styleDefinition [ 1 ] + 'm' ; }
Apply one single style on str

@param {string} str
@param {string} property
@param {string} value
@return {string}
Apply one single style on str