supports
v0.1.1
Published
Modular feature detection library.
Downloads
27
Readme
Supports
Modular feature detection library for CommonJS environments.
Usage
var supports = require('supports');
if (supports.touch) {
// Touch device
} else {
// No touch support :(
}
// Modular way
var supportsTouch = require('supports/touch');
if (supportsTouch) {
// Touch device
} else {
// No touch support :(
}