screen-orientation
v1.0.3
Published
Get the current screen orientation
Downloads
369
Readme
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