canvas-fit

Small module for fitting a canvas element within the bounds of its parent.

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.