Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 775 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 775 Bytes

Browser Detector

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.

Information

Packagebrowser-result
Description Get browser info

Usage

Install

$ npm install --save-dev browser-result

Example

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} 

PRs welcome for additional features