Code Monkey home page Code Monkey logo

simulated-devices's Introduction

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

simulated-devices's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.