Skip to content

API Reference > Interfaces > IBrowser

IBrowser ​

js
{
    name: "",
    version: "",
    major: "",
    type: ""
}

Properties ​

name?: string ​

The browser name.

version?: string ​

The full browser version, or undefined if no version is found.

major?: string ​

The first numeric component of version:

versionmajorExplanation
"123.0.1", "v123.0.1""123"Numeric characters from the first component of version
"XP", "alpha.1"""Empty string when no numeric in the first component
undefinedundefinedundefined when no version found

type?: string ​

The browser type, such as email, inapp, or crawler.

TIP

Inherited methods ​

is(), toString(), withClientHints(), and withFeatureCheck() are inherited from IData.

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