lib/string-tools.js
function clipLeft(input, width, prefix){
    prefix = prefix || "...";
    if (input.length > width){
        return prefix + input.slice(-(width - prefix.length));
    } else {
        return input;
    }
}
function clipLeft(input, width, prefix){
    prefix = prefix || "...";
    if (input.length > width){
        return prefix + input.slice(-(width - prefix.length));
    } else {
        return input;
    }
}
function clipLeft ( input , width , prefix ) { prefix = prefix || "..." ; if ( input . length > width ) { return prefix + input . slice ( - ( width - prefix . length ) ) ; } else { return input ; } }
returns the input string clipped from the left side in order to meet the specified `width`
@param {string} - input string to repeat
@param {number} - the desired final width
@param [prefix=...] {string} - the prefix to replace the clipped region
@returns {string}
@alias module:string-tools.clipLeft
returns the input string clipped from the left side in order to meet the specified width