Skip to content
On this page

getEngine(): IEngine

Get layout rendering engine name & version from user-agent string.

js
// Result object is structured as follow:
{ name: '', version: '' }

name?: string

version?: string

Determined dynamically

Code Example

js
const operamini = 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.21214/19.916; U; en) Presto/2.5.25'
const parser = new UAParser(operamini);

console.log(parser.getEngine());
// { name : "Presto", version : "2.5.25" }

Licensed under the MIT License.