1.0.2 • Published 5 years ago

detect-os-browser.js v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

detect-os-browser.js

get info from userAgent

Installation

npm install --save detect-os-browser.js

Usage

  • webpack
import {
    isPC,
    isAndroid,
    isIos,
    os,
    browser,
    browserVersion,
    appInfo,
    detectOS,
    getBrowserInfo
} from 'detect-os-browser.js';
  • browser
<script type="text/javascript" src="lib/detectOsBrowser.min.js"></script>
<script type="text/javascript">
    /*
    {
        isPC,
        isAndroid,
        isIos,
        os,
        browser,
        browserVersion,
        appInfo,
        detectOS,
        getBrowserInfo
    }
    */
    console.log(window.detectOsBrowser);
</script>