Next Phenomenal Microbrewery

    is-touch-device
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/is-touch-device package

    1.0.1 • Public • Published

    is-touch-device Version Badge

    Build Status dependency status dev dependency status License Downloads

    npm badge

    Is the current JS environment a touch device?

    Usage

    var isTouchDevice = require('is-touch-device');
    var assert = require('assert');
     
    assert.equal(typeof isTouchDevice(), 'boolean');

    Install

    npm i is-touch-device

    DownloadsWeekly Downloads

    542,740

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • airbnbeng
    • lencioni
    • noratarano
    • ljharb
    • majapw