eagle-device-query
v0.0.1
Published
get device properties in browser
Downloads
1
Readme
eagle-device-query
get device properties in browser
install
npm i eagle-device-query
usage
const devq = require('eagle-device-query')
// devq.isMobile
// devq.isIphone
// devq.isIpad
// devq.isIpod
// devq.isAndroidPhone
// devq.isWindowsPhone
// devq.platform -> 'windows' | 'android' | 'ios' | 'other'
// devq.orientation -> 'landscape' | 'portrait'
- if isMobile got "true", it will also put a "mobile" class name in document root ()