get the current viewport dimensions
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
index.js

Readme.md

viewport

cross-browser viewport size

Installation

Install with component(1):

$ component install bmcmahen/viewport

Example

var viewport = require('viewport');
var current = viewport();
// returns: current.width, current.height

License

MIT