Bowser

Bowser

Bowser class. Keep it simple as much as it can be. It's supposed to work with collections of Parser instances rather then solve one-instance problems. All the one-instance stuff is located in Parser class.

Constructor

new Bowser()

Source:

Methods

(static) getParser(UA, skipParsingopt) → {Parser}

Source:

Creates a module:parser:Parser instance

Example
const bowser = new Bowser(window.navigator.userAgent);
bowser.getResult()
Parameters:
Name Type Attributes Default Description
UA String

UserAgent string

skipParsing Boolean <optional>
false

same as skipParsing for Parser

Throws:

when UA is not a String

Type
Error
Returns:
Type
Parser

(static) parse(UA) → {ParsedResult}

Source:

Creates a Parser instance and runs Parser.getResult immediately

Parameters:
Name Type Description
UA
Returns:
Type
ParsedResult