Negatory. Postpone Mission.
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    ios-detectorpublic

    ios-detector

    A module that adds a CSS class when it detects the browser is on Apple iOS.

    npm Version MIT License Build Status Dependencies Status devDependencies Status

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

    SystemJS via jspm

    $ jspm install npm:ios-detector

    Scripts

    Install Dependencies

    $ npm install

    Run Test Suite:

    $ npm test

    Run Linter

    $ ./node_modules/.bin/jshint .

    License

    Copyright © 2016 Yola.
    Released under the MIT License.

    install

    npm i ios-detector

    Downloadsweekly downloads

    1

    version

    0.1.2

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar