screen-info-js

1.0.1 • Public • Published

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

/screen-info-js/

    Package Sidebar

    Install

    npm i screen-info-js

    Weekly Downloads

    22

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    1.91 kB

    Total Files

    3

    Last publish

    Collaborators

    • matswainson