Skip to content

getOS(): IOS

Get operating system name & version from user-agent string.

Properties of IOS:

js
// OS object is structured as follow:
{ 
    name: "", 
    version: ""
}

name?: string

INFO

See list of possible os name here.


version?: string

Determined dynamically.

Methods of IOS

Inherited from IData:

Code Example

js

const galaxytabs8 = 'Mozilla/5.0 (Linux; Android 12; SM-X706B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36'
const parser = new UAParser(galaxytabs8);

console.log(parser.getOS());
// { name : "Android", version : "12" }

UAParser.js v2 is licensed under AGPLv3 or PRO licenses.