🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

isretina.js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isretina.js

very little snippet for bower and npm to check if the client is using a retina display

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

isRetina.js

isRetina.js is a very little snippet for bower and npm to check if the client is using a retina display.

Installation

You can either use bower or npm.js to install this little neat snippet (otherwise you could also just copy it into your folder and require or just include it in your browser file).

Using Bower

If you are using the snippet with bower you should be sure that bower is already installed on your device and then run this line of script.

bower install --save isRetina.js

Using NPM.js

If you are using the snippet with bower you should be sure that bower is already installed on your device and then run this line of script.

npm install --save isRetina.js

Usage

If you already installed isRetina.js, be sure to use on of the following methods to include the library in your project (if you are using bower + browserify, please use the debowerify transform for browserify):

Using Common.js

var isRetina = require('isRetina');

Using ECMAScript 6 Modules

import isRetina from 'isRetina';

Contributing

Please fork this project and make a pull request. Only work in isRetina.babel.js and then run gulp minify !!!

Keywords

retina

FAQs

Package last updated on 22 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts