lib/version.js
function fullWidth(text, param) {
    let cols = process.stdout.columns;
    let lines = text.split('\n');

    for (i = 0; i < lines.length; i++) {
        let size = cols;
        if (i === 0) size = size - 15;
        if ((lines[i].indexOf('%') > 0) && (param !== undefined)) size = size - param.length + 2;
        while (lines[i].length < size) {
            lines[i] = lines[i] + ' ';
        }
    }
    text = lines.join('\n');

    return text;
}
function fullWidth(text, param) {
    let cols = process.stdout.columns;
    let lines = text.split('\n');

    for (i = 0; i < lines.length; i++) {
        let size = cols;
        if (i === 0) size = size - 15;
        if ((lines[i].indexOf('%') > 0) && (param !== undefined)) size = size - param.length + 2;
        while (lines[i].length < size) {
            lines[i] = lines[i] + ' ';
        }
    }
    text = lines.join('\n');

    return text;
}
function fullWidth ( text , param ) { let cols = process . stdout . columns ; let lines = text . split ( '\n' ) ; for ( i = 0 ; i < lines . length ; i ++ ) { let size = cols ; if ( i === 0 ) size = size - 15 ; if ( ( lines [ i ] . indexOf ( '%' ) > 0 ) && ( param !== undefined ) ) size = size - param . length + 2 ; while ( lines [ i ] . length < size ) { lines [ i ] = lines [ i ] + ' ' ; } } text = lines . join ( '\n' ) ; return text ; }
make all the lines of a text as long as terminal's width
make all the lines of a text as long as terminal s width