es-browser-detect
v1.0.2
Published
A simple module based on detectmobilebrowsers.com with readable regular expression blocks.
Downloads
2
Readme
Browser Detect
This is a simple javascript module based on detectmobilebrowsers with readable regular expression blocks to extend it.
Installation
$ npm install es-browser-detect --save
Usage
import { BrowserDetect } from 'browser-detect';
const browserDetect = new browserDetect();
browserDetect.isMobile()
API
Instance methods:
- isMobile(): boolean
- isTablet(): boolean
- isMobileOrTablet(): boolean