Package detail

is-retina

KyleAMathews521.1kMIT1.0.3

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

retina, dpr, device-pixel-ratio

readme

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.