Skip to content

lllopo/simulated-devices

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulated Devices

devices.json is a catalog of common web-enabled devices and their properties.

{
  TYPES: [ "phones", … ],
  phones: [
    {
      name: "LePhone",
      width: 360,
      height: 640,
      pixelRatio: 3,
      userAgent: "Mozilla/5.0 (Mobile; rv:39.0) Gecko/39.0 Firefox/39.0",
      touch: true,
      firefoxOS: true
    }
  ], …
}

Device properties

  • name brand and model(s).
  • width viewport width.
  • height viewport height.
  • pixelRatio ratio from viewport to physical screen pixels.
  • userAgent UA string of the device's browser.
  • touch whether it has a touch screen.
  • firefoxOS whether Firefox OS is supported.
  • os the OS type it usually ships with.

Device types

  • phones (smart phones)
  • tablets
  • laptops
  • televisions
  • consoles (gaming consoles)
  • watches (smart watches)

Downloads

Contribute

  • Use the check.html helper.
  • Use node test.js to verify your devices.json.
  • Submit pull requests.

Sources

About

A catalog of common web-enabled devices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.4%
  • HTML 32.4%
  • Shell 10.2%