winresize-event

0.2.1 • Public • Published

winresize-event

Debounced window resize suitable for desktop and mobile browsers.

Install

npm install --save winresize-event

Usage

var wr = require('winresize-event');

wr.winResize.on(function(winDimensions) {
  console.log(winDimensions);
});

For sychronous use:

console.log(wr.getWinSize());

winResize also has .once and .removeListener methods.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i winresize-event

    Weekly Downloads

    1

    Version

    0.2.1

    License

    ISC

    Last publish

    Collaborators

    • egauci