is-retina

1.0.3 • Public • Published

isRetina

Simple function which tells if your code is running on a high DPR device or not

Install

npm install is-retina

Usage

var isRetina = require('is-retina');
 
isRetina()
// Returns true on a "retina" device and false on a normal one.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i is-retina

      Weekly Downloads

      133,313

      Version

      1.0.3

      License

      MIT

      Last publish

      Collaborators

      • kylemathews