# is-touch-device

> Is the current JS environment a touch device?

Latest version **1.0.1** (published 2017-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-touch-device
pnpm add is-touch-device
yarn add is-touch-device
bun add is-touch-device
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-06-18 |
| First published | 2017-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-touch-device) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 91 |
| Author | Jordan Harband |
| Maintainers | airbnb, ljharb, majapw |
| Keywords | touch, is, documenttouch, maxtouchpoints, msmaxtouchpoints, touchpoints, ontouchstart |

## Links

- npm: https://www.npmjs.com/package/is-touch-device
- Repository: https://github.com/airbnb/is-touch-device
- Homepage: https://github.com/airbnb/is-touch-device#readme
- Issues: https://github.com/airbnb/is-touch-device/issues
- npm.io page: https://npm.io/package/is-touch-device

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-06-18
- 1.0.0 — 2017-06-17

## README

# is-touch-device <sup>[![Version Badge][2]][1]</sup>

[![Build Status][3]][4]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][9]][1]

Is the current JS environment a touch device?

## Usage

```javascript
var isTouchDevice = require('is-touch-device');
var assert = require('assert');

assert.equal(typeof isTouchDevice(), 'boolean');
```

[1]: https://npmjs.org/package/is-touch-device
[2]: http://versionbadg.es/airbnb/is-touch-device.svg
[3]: https://api.travis-ci.org/airbnb/is-touch-device.svg
[4]: https://travis-ci.org/airbnb/is-touch-device
[5]: https://david-dm.org/airbnb/is-touch-device.svg
[6]: https://david-dm.org/airbnb/is-touch-device
[7]: https://david-dm.org/airbnb/is-touch-device/dev-status.svg
[8]: https://david-dm.org/airbnb/is-touch-device?type=dev
[9]: https://nodei.co/npm/is-touch-device.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/is-touch-device.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/is-touch-device.svg
[downloads-url]: http://npm-stat.com/charts.html?package=is-touch-device

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