browser-result

1.0.0 • Public • Published

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

Package browser-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

Package Sidebar

Install

npm i browser-result

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

2.5 kB

Total Files

3

Last publish

Collaborators

  • scrollstack