$ cnpm install has-hover
Check if hover is available on the current device.
const isHover = require('has-hover') if (!isHover) { //do touch-only routine }
If you find edge case, please address issues.
Copyright 2013 - present © cnpmjs.org