Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bozzhik/is-mobile
NPM package for detecting mobile devices in web applications.
https://github.com/bozzhik/is-mobile
bozzhik bozzhik-is-mobile ismobile npm npm-package
Last synced: 20 days ago
JSON representation
NPM package for detecting mobile devices in web applications.
- Host: GitHub
- URL: https://github.com/bozzhik/is-mobile
- Owner: bozzhik
- Created: 2024-04-04T17:20:40.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-14T14:27:24.000Z (10 months ago)
- Last Synced: 2025-01-18T08:24:35.626Z (25 days ago)
- Topics: bozzhik, bozzhik-is-mobile, ismobile, npm, npm-package
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@bozzhik/is-mobile
- Size: 44.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Overview
The `@bozzhik/is-mobile` variable is a utility designed to determine whether the current device is considered mobile, based on browser identification.
#### [Projects that already use this package →](https://github.com/topics/bozzhik-is-mobile)
## Installation
To install the `isMobile` variable, you can use npm:
```bash
npm install @bozzhik/is-mobile
```## Example
In this case, the desired component will be drawn based on the `device`:
```tsx
import {isMobile} from '@bozzhik/is-mobile'function Component() {
return isMobile ? :
}
```