Is the current JS environment a touch device?
var isTouchDevice = require('is-touch-device'); var assert = require('assert'); assert.equal(typeof isTouchDevice(), 'boolean');