node-device-detector
Version:
Nodejs device detector (port matomo-org/device-detector)
11 lines (10 loc) • 342 B
JavaScript
const DEVICE_TYPE = require('./device-type');
module.exports = {
'automotive' : DEVICE_TYPE.CAR_BROWSER,
'xr' : DEVICE_TYPE.WEARABLE,
'watch' : DEVICE_TYPE.WEARABLE,
'mobile' : DEVICE_TYPE.SMARTPHONE,
'tablet' : DEVICE_TYPE.TABLET,
'desktop' : DEVICE_TYPE.DESKTOP,
'eink' : DEVICE_TYPE.TABLET,
};