Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@braintree/browser-detection

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braintree/browser-detection

A small lib to detect browser compatibility for braintree products

  • 1.14.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
212K
decreased by-54.92%
Maintainers
1
Weekly downloads
 
Created

What is @braintree/browser-detection?

@braintree/browser-detection is a utility library for detecting various browser features and characteristics. It helps developers to identify the browser type, version, and specific capabilities, allowing for more tailored and compatible web experiences.

What are @braintree/browser-detection's main functionalities?

Detect if the browser is Internet Explorer

This feature allows you to check if the current browser is Internet Explorer. It returns a boolean value indicating the presence of IE.

const browserDetection = require('@braintree/browser-detection');
const isIE = browserDetection.isIe();
console.log(isIE); // true or false

Detect if the browser is Edge

This feature allows you to check if the current browser is Microsoft Edge. It returns a boolean value indicating the presence of Edge.

const browserDetection = require('@braintree/browser-detection');
const isEdge = browserDetection.isEdge();
console.log(isEdge); // true or false

Detect if the browser is Chrome

This feature allows you to check if the current browser is Google Chrome. It returns a boolean value indicating the presence of Chrome.

const browserDetection = require('@braintree/browser-detection');
const isChrome = browserDetection.isChrome();
console.log(isChrome); // true or false

Detect if the browser is Safari

This feature allows you to check if the current browser is Safari. It returns a boolean value indicating the presence of Safari.

const browserDetection = require('@braintree/browser-detection');
const isSafari = browserDetection.isSafari();
console.log(isSafari); // true or false

Detect if the browser is Firefox

This feature allows you to check if the current browser is Mozilla Firefox. It returns a boolean value indicating the presence of Firefox.

const browserDetection = require('@braintree/browser-detection');
const isFirefox = browserDetection.isFirefox();
console.log(isFirefox); // true or false

Other packages similar to @braintree/browser-detection

FAQs

Package last updated on 20 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc