1.0.0 • Published 7 years ago
ios-detector v1.0.0
ios-detector
A module that adds a CSS class when it detects the browser is on Apple iOS.
Examples
Adding a 'ios-device' class to the <html> element, if the browser is running on Apple iOS.
import detectIOS from 'ios-detector';
detectIOS();Detecting whether the browser is running on Apple iOS.
import {isIOSDevice} from 'ios-detector';
if (isIOSDevice()) {
console.log('The browser is running on Apple iOS.');
}Installation
Node.js via npm
$ npm install ios-detectorSystemJS via jspm
$ jspm install npm:ios-detectorScripts
Install Dependencies
$ npm installRun Test Suite:
$ npm testRun Linter
$ ./node_modules/.bin/jshint .License
Copyright © 2016 Yola. Released under the MIT License.