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.

Readme

Keywords

Package Sidebar

Install

npm i winresize-event

Weekly Downloads

1

Version

0.2.1

License

ISC

Last publish

Collaborators

  • egauci