1.0.9 • Published 5 years ago
easy-detect-device-script v1.0.9
Easy detect device script
With this NPM package you can easily see which device the visitor is using. Use the class DetectDevice with the function.
Example:
const DetectDevice = require('easy-detect-device-script.js');
if (DetectDevice.isMobileDevice()) {
// Do mbl stuff
< } else if (DetectDevice.isTabletDevice()) {
// Do tablet stuff
} else if (DetectDevice.isDesktopDevice()) {
// Do desktop stuff
}