Skip to content

← enums

BrowserType enum ​

csv
CRAWLER, CLI, EMAIL, FETCHER, INAPP, MEDIAPLAYER, LIBRARY

INFO

See list of possible browser type here.

Values ​

EnumValue
BrowserType.CLI"cli"
BrowserType.CRAWLER"crawler"
BrowserType.EMAIL"email"
BrowserType.FETCHER"fetcher"
BrowserType.INAPP"inapp"
BrowserType.MEDIAPLAYER"mediaplayer"
BrowserType.LIBRARY"library"

Code Example ​

now-playing.js
js
import { UAParser } from 'ua-parser-js'; 
import { BrowserType } from 'ua-parser-js/enums';

if (UAParser().browser.is(BrowserType.MEDIAPLAYER)) {
    console.log('La la la..');
}

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