@braintree/browser-detection

WebJar for @braintree/browser-detection

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

braintree__browser-detection
Last Version

Last Version

1.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

@braintree/browser-detection
WebJar for @braintree/browser-detection
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/braintree/browser-detection

Download braintree__browser-detection

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/braintree__browser-detection/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>braintree__browser-detection</artifactId>
    <version>1.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/braintree__browser-detection/
implementation 'org.webjars.npm:braintree__browser-detection:1.9.0'
// https://jarcasting.com/artifacts/org.webjars.npm/braintree__browser-detection/
implementation ("org.webjars.npm:braintree__browser-detection:1.9.0")
'org.webjars.npm:braintree__browser-detection:jar:1.9.0'
<dependency org="org.webjars.npm" name="braintree__browser-detection" rev="1.9.0">
  <artifact name="braintree__browser-detection" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='braintree__browser-detection', version='1.9.0')
)
libraryDependencies += "org.webjars.npm" % "braintree__browser-detection" % "1.9.0"
[org.webjars.npm/braintree__browser-detection "1.9.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Browser Detection

A utility for detecting browser support for Braintree libs.

Example

const browserDetection = require("browser-detection");

browserDetection.isAndroid();
browserDetection.isChromeOS();
browserDetection.isChrome();
browserDetection.isEdge();
browserDetection.isFirefox();
browserDetection.isIe();
browserDetection.isIe9();
browserDetection.isIe10();
browserDetection.isIe11();
browserDetection.isIos();
browserDetection.isIosFirefox();
browserDetection.isIosSafari();
browserDetection.isIosWebview();
browserDetection.isIosUIWebview();
browserDetection.isIosWKWebview();
browserDetection.isMobileFirefox();
browserDetection.isSamsungBrowser();
browserDetection.hasSoftwareKeyboard();
browserDetection.supportsPaymentRequestApi();
browserDetection.supportsPopups();

To reduce build sizes, you can require just the modules you need:

const isAndroid = require("browser-detection/is-android");
const isChromeOS = require("browser-detection/is-chrome-os");
const isChrome = require("browser-detection/is-chrome");
const isEdge = require("browser-detection/is-edge");
const isFirefox = require("browser-detection/is-firefox");
const isIe = require("browser-detection/is-ie");
const isIe9 = require("browser-detection/is-ie9");
const isIe10 = require("browser-detection/is-ie10");
const isIe11 = require("browser-detection/is-ie11");
const isIos = require("browser-detection/is-ios");
const isIosFirefox = require("browser-detection/is-ios-firefox");
const isIosSafari = require("browser-detection/is-ios-safari");
const isIosWebview = require("browser-detection/is-ios-webview");
const isIosUIWebview = require("browser-detection/is-ios-uiwebview");
const isIosWKWebview = require("browser-detection/is-ios-wkwebview");
const isMobileFirefox = require("browser-detection/is-mobile-firefox");
const isSamsungBrowser = require("browser-detection/is-samsung");
const hasSoftwareKeyboard = require("browser-detection/has-software-keyboard");
const suportsPaymentRequestApi = require("browser-detection/supports-payment-request-api");
const supportsPopups = require("browser-detection/supports-popups");

Testing

npm test
org.webjars.npm

Braintree

Versions

Version
1.9.0
1.7.0