1.0.3 • Published 9 years ago
screen-orientation v1.0.3
screen-orientation
Get the current screen orientation
Install
$ npm install --save screen-orientation
Usage
var screenOrientation = require('screen-orientation')
screenOrientation()
//=> {direction: 'landscape', version: 'primary'}
API
screenOrientation()
-> object
Returns the current screen orientation (direction and version).
License
MIT © Ben Drucker