8000 GitHub - harshithkashyap/browser-detect: A simple module based on detectmobilebrowsers.com with readable regular expression blocks
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

harshithkashyap/browser-detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. isMobile(): boolean
  2. isTablet(): boolean
  3. isMobileOrTablet(): boolean

License

License

About

A simple module based on detectmobilebrowsers.com with readable regular expression blocks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0