Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

has-touch

radubrehar14.4kMIT1.0.1

utility that returns whether the browser supports touch events or not

touch, has, test, support, event, events

readme

has-touch

Touch support detection module on npm

Install

$ npm install --save has-touch

Usage

var hasTouch = require('has-touch')

hasTouch === true || hasTouch === false