ios-version
Detect the current iOS version in the browser
Install
$ npm install --save ios-version
Usage
var iOsVersion = //=> {major: 8, minor: 4, patch: 0} var current = // passes navigator.userAgent to iOsVersion
API
iOsVersion(agent)
-> object
Returns a semver object with major
/ minor
/ patch
version numbers.
agent
Required
Type: string
A user agent string from the browser.
License
MIT © Ben Drucker