1.0.2 • Published 2 years ago

detect-browser-platform v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Welcome

This module is intended to detect information about Browser brand and version, Operating System and Platform. The detection logic is based on checking browser specific features together with User agent information.

How to install

npm i detect-browser-platform

How to use it

import { getEnvironmentInformation } from  'detect-browser-platform';

const { browserInfo: { brand, version } } = getEnvironmentInformation();
console.log(`Browser name: ${brand}`);
console.log(`Browser version: ${version}`);

Working at this moment:

  • Google Chrome
  • Mozilla Firefox
  • Opera
  • Microsoft Edge (Chromium)
  • Microsoft Edge
  • Apple Safari
  • Internet Explorer