ua-parser-js
UAParser.js: The Essential Web Development Tool for User-Agent Detection. Detect Browsers, OS, Devices, Bots, Apps, AI Crawlers, and more. Run in Browser or Node
- 10k
- JavaScript
- AGPL-3.0
- 9 d ago
UAParser.js: The Essential Web Development Tool for User-Agent Detection. Detect Browsers, OS, Devices, Bots, Apps, AI Crawlers, and more. Run in Browser or Node
📱 The easiest way to write conditional CSS and/or JavaScript based on device operating system (iOS, Android, Blackberry, Windows, Firefox OS, MeeGo), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).
Detect if a device is mouseOnly, touchOnly, or hybrid, and if the primary input is mouse or touch.
📱 Detect the user mobile phone (Android or iOS) based on their device's OS