$ cnpm install is-touch-device
Is the current JS environment a touch device?
var isTouchDevice = require('is-touch-device');
var assert = require('assert');
assert.equal(typeof isTouchDevice(), 'boolean');
Copyright 2013 - present © cnpmjs.org | Home |