on-window-size
Listen to the window size
Install
$ npm install --save on-window-size
Usage
var onWindowSize =
API
var unlisten = onWindowSize(listener)
Calls listener
with the result of screen-size when the window size changes.
Call the returned unlisten
function to stop listening.
License
MIT © Andrew Joslin