0.1.1 • Published 8 years ago
mobile-browser-os v0.1.1
mobile-browser-os
Detect the os of the mobile device on the browser based on its navigator.userAgent.
Installation
Using npm:
$ npm i --save mobile-browser-os
In Node.js:
import os from 'mobile-browser-os'
Usage example:
const info = os.detect()
info.name //'android' or 'ios'
info.version //'x.x' or 'x.x.x'