node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

is-retina

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.