No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kristján Oddsson 56de2e87f4 Create LICENSE
Explicitly adding the MIT licence to the repo. It already existed as a value for the `licence` key in `package.json` so this is more just a formality for automatic tools to pick up on.
2017-08-31 14:54:01 +01:00
test Add isSamsungBrowser and isMobileFirefox (#8) 2017-07-25 11:09:56 -05:00
.eslintrc Port browser-detection from braintree-web 2017-04-05 10:47:39 -05:00
.gitignore Port browser-detection from braintree-web 2017-04-05 10:47:39 -05:00
.nvmrc Port browser-detection from braintree-web 2017-04-05 10:47:39 -05:00
browser-detection.js Add isSamsungBrowser and isMobileFirefox (#8) 2017-07-25 11:09:56 -05:00
CHANGELOG.md Update version to v1.6.0 2017-07-25 16:11:31 +00:00
is-android.js Port browser-detection from braintree-web 2017-04-05 10:47:39 -05:00
is-chrome.js Add isSamsungBrowser and isMobileFirefox (#8) 2017-07-25 11:09:56 -05:00
is-edge.js Add ie and edge helpers (#7) 2017-07-03 09:23:58 -05:00
is-ie.js Add ie and edge helpers (#7) 2017-07-03 09:23:58 -05:00
is-ie9.js Port browser-detection from braintree-web 2017-04-05 10:47:39 -05:00
is-ie10.js Add IE 10 detection (#2) 2017-04-10 13:25:41 -05:00
is-ie11.js Add ie and edge helpers (#7) 2017-07-03 09:23:58 -05:00
is-ios-firefox.js Add isSamsungBrowser and isMobileFirefox (#8) 2017-07-25 11:09:56 -05:00
is-ios-safari.js Add isIosSafari method (#3) 2017-05-11 14:50:34 -05:00
is-ios-uiwebview.js Add is-ios-uiwebview and is-ios-wkwebview 2017-05-16 21:24:01 +00:00
is-ios-webview.js Extract ios webview module (#4) 2017-05-11 14:48:48 -05:00
is-ios-wkwebview.js Add is-ios-uiwebview and is-ios-wkwebview 2017-05-16 21:24:01 +00:00
is-ios.js Port browser-detection from braintree-web 2017-04-05 10:47:39 -05:00
is-mobile-firefox.js Add isSamsungBrowser and isMobileFirefox (#8) 2017-07-25 11:09:56 -05:00
is-samsung.js Add isSamsungBrowser and isMobileFirefox (#8) 2017-07-25 11:09:56 -05:00
LICENSE Create LICENSE 2017-08-31 14:54:01 +01:00
package.json chore: rename package to not have a scope 2017-08-31 11:21:28 +01:00
README.md Add isSamsungBrowser and isMobileFirefox (#8) 2017-07-25 11:09:56 -05:00
supports-popups.js Add isSamsungBrowser and isMobileFirefox (#8) 2017-07-25 11:09:56 -05:00

Browser Detection

A utility for detecting browser support for Braintree libs.

Example

var browserDetection = require('browser-detection');

browserDetection.isAndroid();
browserDetection.isChrome();
browserDetection.isEdge();
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.supportsPopups();

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

var isAndroid = require('browser-detection/is-android');
var isChrome = require('browser-detection/is-chrome');
var isEdge = require('browser-detection/is-edge');
var isIe = require('browser-detection/is-ie');
var isIe9 = require('browser-detection/is-ie9');
var isIe10 = require('browser-detection/is-ie10');
var isIe11 = require('browser-detection/is-ie11');
var isIos = require('browser-detection/is-ios');
var isIosFirefox = require('browser-detection/is-ios-firefox');
var isIosSafari = require('browser-detection/is-ios-safari');
var isIosWebview = require('browser-detection/is-ios-webview');
var isIosUIWebview = require('browser-detection/is-ios-uiwebview');
var isIosWKWebview = require('browser-detection/is-ios-wkwebview');
var isMobileFirefox = require('browser-detection/is-mobile-firefox');
var isSamsungBrowser = require('browser-detection/is-samsung');
var supportsPopups = require('browser-detection/supports-popups');

Testing

npm test