Ever wanted to know what the current Browser is being used in Javascript?
This module helps you to understand what the device and browser the current session is using.
npm
npm install what_browser
yarn
yarn add what_browser
A js module that returns information about the current users browser.
import what from 'what_browser';
returns device type and version
what.Browser.isThis(function(device,version) {
console.log(device, version)
});
what.device.isTouchDevice()
what.device.isDesktop()
what.device.isTablet()
what.device.isMobile()
//Android
what.device._android()
//BlackBerry
what.device._blackBerry()
//iOS
what.device._ios(),
what.device._iPhone()
what.device._iPad()
what.device._iPod()
what.device._opera()
what.device._windows()
Any comments, or questions grab me on twitter @dj10dj100