Skip to content

matswainson/screen-info-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

JavaScript detection of device screen size, orientation & pixel density

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published