function () {
        var tty,
            width,
            height;

        try { tty = require('tty'); }
        catch (e) { tty = null; }

        if (tty && tty.isatty(1) && tty.isatty(2)) {
            if (process.stdout.getWindowSize) {
                width = process.stdout.getWindowSize(1)[0];
                height = process.stdout.getWindowSize(1)[1];
            }
            else if (tty.getWindowSize) {
                width = tty.getWindowSize()[1];
                height = tty.getWindowSize()[0];
            }
            else if (process.stdout.columns && process.stdout.rows) {
                height = process.stdout.rows;
                width = process.stdout.columns;
            }
        }

        return {
            exists: !(Boolean(process.env.CI) || !process.stdout.isTTY), // eslint-disable-line no-process-env
            width: width,
            height: height
        };
    }
function () {
        var tty,
            width,
            height;

        try { tty = require('tty'); }
        catch (e) { tty = null; }

        if (tty && tty.isatty(1) && tty.isatty(2)) {
            if (process.stdout.getWindowSize) {
                width = process.stdout.getWindowSize(1)[0];
                height = process.stdout.getWindowSize(1)[1];
            }
            else if (tty.getWindowSize) {
                width = tty.getWindowSize()[1];
                height = tty.getWindowSize()[0];
            }
            else if (process.stdout.columns && process.stdout.rows) {
                height = process.stdout.rows;
                width = process.stdout.columns;
            }
        }

        return {
            exists: !(Boolean(process.env.CI) || !process.stdout.isTTY), // eslint-disable-line no-process-env
            width: width,
            height: height
        };
    }
function ( ) { var tty , width , height ; try { tty = require ( 'tty' ) ; } catch ( e ) { tty = null ; } if ( tty && tty . isatty ( 1 ) && tty . isatty ( 2 ) ) { if ( process . stdout . getWindowSize ) { width = process . stdout . getWindowSize ( 1 ) [ 0 ] ; height = process . stdout . getWindowSize ( 1 ) [ 1 ] ; } else if ( tty . getWindowSize ) { width = tty . getWindowSize ( ) [ 1 ] ; height = tty . getWindowSize ( ) [ 0 ] ; } else if ( process . stdout . columns && process . stdout . rows ) { height = process . stdout . rows ; width = process . stdout . columns ; } } return { exists : ! ( Boolean ( process . env . CI ) || ! process . stdout . isTTY ) , // eslint-disable-line no-process-env width : width , height : height } ; }
A CLI utility helper method to compute and scae the size of the CLI table to be displayed.

@returns {Object} - A set of properties: width, height, and TTY existance.
A CLI utility helper method to compute and scae the size of the CLI table to be displayed .
Returns an object containing information about the current term size