Skip to content

bmcmahen/viewport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

get the current viewport dimensions

Resources

Stars

Watchers

Forks

Packages

No packages published