CodeBrowser / npm / mobile-detect
mobile-detect@1.4.5
// Device detection (phone, tablet, desktop, mobile grade, os, versions)
$ npm install mobile-detect
downloads/wk
268,037
license
MIT
version
1.4.5
published
Mar 13, 2021
What is mobile-detect?
Mobile-detect is a JavaScript library that identifies the type of device accessing your application by parsing the user agent string, determining whether it's a phone, tablet, or desktop, and detecting the operating system and browser version. Developers use it to serve device-specific content, adjust layouts for different screen types, or implement device-based logic without relying on CSS media queries or viewport size alone.
Keywords
#useragent #mobile #phone #tablet #detect #device #browser #version #mobilegrade #sniff
Maintainers
hgoebl