JavaScript detection of device screen size, orientation & pixel density
JavaScript detection of device screen size, orientation & pixel density.
var screenInfo = require('screen-info-js');
/* {
...
maxTouchPoints: 5,
orientation: 'landscape'
...
} */
console.log(screenInfo.maxTouchPoints); // 5
console.log(screenInfo.orientation); // landscape
screenInfo
provides information on: