windowify

Allows regular JavaScript files to expose global variables and functions when bundled with Browserify

window-size

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.