This repository is a mirror of the component module bmcmahen/viewport. It has been modified to work with NPM+Browserify. You can install it using the command npm install npmcomponent/bmcmahen-viewport
. Please do not open issues or send pull requests against this repo. If you have issues with this repo, report it to npmcomponent.
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