CodeBrowser / npm / is-mobile
is-mobile@5.0.0
// Check if mobile browser.
$ npm install is-mobile
downloads/wk
2,710,126
license
MIT
version
5.0.0
published
Oct 16, 2024
What is is-mobile?
is-mobile is a lightweight utility that detects whether code is running in a mobile or desktop browser environment. Developers use it to conditionally apply mobile-specific logic, styling, or features without relying on viewport size alone. It's useful for adapting user experience based on device type rather than screen dimensions.
Keywords
#mobile #desktop #check #browser
Maintainers
juliangruber