window-size (npm): Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions.
Keywords: columns|console|darwin|height|lines|redirected|resize|rows|size|term|term-size|terminal|tty|unix|width|win|window|windows|cli|command-line|iterm|optimist|yargs