isretina.js

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

Usage no npm install needed!

<script type="module">
  import isretinaJs from 'https://cdn.skypack.dev/isretina.js';
</script>

README

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 !!!