screen-info-js
v1.0.1
Published
JavaScript detection of device screen size, orientation & pixel density
Downloads
31
Maintainers
Readme
screen-info.js
JavaScript detection of device screen size, orientation & pixel density.
Example
var screenInfo = require('screen-info-js');
/* {
...
maxTouchPoints: 5,
orientation: 'landscape'
...
} */
console.log(screenInfo.maxTouchPoints); // 5
console.log(screenInfo.orientation); // landscape
screenInfo
provides information on:
- height
- maxTouchPoints
- orientation
- pixelDensity
- retinaDisplay
- width