what-env v0.0.1
Detect browser engine, device type, and touch capability.
const env = envSAFARI // true if in Safari browserenvWEBKIT // true if using the WebKit engineenvTOUCH // true if the device is touch-friendlyenvMOBILE // true if using a mobile deviceenvAPPLE // true if on a Mac, iPad, or iPhone
Available properties
Pull requests accepted for new properties.
Browser:
- SAFARI
Engine:
- WEBKIT
Device:
- MOBILE
- PHONE
- TOUCH
Brand:
- APPLE