Mainly there are two objects that are used for browser detection which is as follows:
- navigator.appName - purpose is to determine the web browser
- navigator.appVersion - purpose is to determine the version of the web browser.
Package | browser-result |
Description | Get browser info |
$ npm install --save-dev browser-result
import browser from 'browser-result'
console.log(browser);
// {android: false chrome: true chrome_version: 97 gecko: false gecko_version: false ie: false ie_version: null ios: false mac: true safari: false webkit: true webkit_version: 537}