Package Exports
- ios-version
- ios-version/current
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ios-version) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ios-version 
Detect the current iOS version in the browser
Install
$ npm install --save ios-version
Usage
var iOsVersion = require('ios-version')
iOsVersion('Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X)...')
//=> {major: 8, minor: 4, patch: 0}
var current = require('ios-version/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