# mobile-detector

> Detect if the user is browsing from mobile or tablet.

Latest version **1.0.3** (published 2017-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install mobile-detector
pnpm add mobile-detector
yarn add mobile-detector
bun add mobile-detector
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-09-11 |
| First published | 2017-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | entregrammer@gmail.com |
| Maintainers | entregrammer |
| Keywords | mobile, detector, detect, useragent, useragent, tablet, device, browser |

## Links

- npm: https://www.npmjs.com/package/mobile-detector
- Repository: https://github.com/entregrammer/mobile-detector
- Homepage: https://github.com/entregrammer/mobile-detector#readme
- Issues: https://github.com/entregrammer/mobile-detector/issues
- npm.io page: https://npm.io/package/mobile-detector

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-09-11
- 1.0.2 — 2017-09-11
- 1.0.1 — 2017-09-11
- 1.0.0 — 2017-09-10

## README

# Mobile detector

Detect if the user is browsing from mobile or tablet.

 
 ## Install:
 ````
 npm i mobile-detector@1.0.2 --save
 ````
 ## Usage:

### ES5 
````
 var detector = require('mobile-detector');
 
 detector.isMobile(); // true
 detector.isMobileOrTablet(); // true
```` 
### ES6

````
 import { isMobile, isMobileOrTablet } from 'mobile-detector';
 
 isMobile(); // true
 isMobileOrTablet(); // true
```` 

### License 
# MIT

---
_Source: https://npm.io/package/mobile-detector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
