# @afuggini/devicetype

> Device type detector

Latest version **1.0.0** (published 2019-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @afuggini/devicetype
pnpm add @afuggini/devicetype
yarn add @afuggini/devicetype
bun add @afuggini/devicetype
```

## 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.0 |
| Published | 2019-09-11 |
| First published | 2019-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ariel Fuggini |
| Maintainers | afuggini |
| Keywords | device, detect, mobile, tablet, desktop, device detector, device type |

## Links

- npm: https://www.npmjs.com/package/@afuggini/devicetype
- Repository: https://github.com/afuggini/devicedetector
- Homepage: https://github.com/afuggini/devicedetector#readme
- Issues: https://github.com/afuggini/devicedetector/issues
- npm.io page: https://npm.io/package/@afuggini/devicetype

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.6.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-09-11

## README

# @afuggini/devicedetector

## Install

```
$ npm i @afuggini/devicedetector
```

## Example Usage

```javascript
const DeviceDetector = require('@afuggini/devicedetector')

const deviceDetector = new DeviceDetector()

deviceDetector.getType() // 'desktop'
deviceDetector.isOneOf('mobile') // false
deviceDetector.isType('tablet') // false
deviceDetector.isMobile() // false
deviceDetector.isTablet() // false
deviceDetector.isDesktop() // true
```

## License

MIT

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