Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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",
      featured: true,
      touch: 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.
  • os the OS type it usually ships with.
  • featured if set to true, the device appears in the RDM drop down list (Firefox UI) by default

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

Code of conduct

Releases

No releases published

Packages

No packages published