JSPM

ios-version

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 405
  • Score
    100M100P100Q115086F
  • License MIT

Detect the current iOS version in the browser

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 Build Status

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