1.0.1 • Published 4 years ago

screen-info-js v1.0.1

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

screen-info.js

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