Package
current-device
The easiest way to write conditional CSS and/or JavaScript based on device operating system (iOS, Android, Blackberry, Windows, Firefox OS, MeeGo, AppleTV, etc), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).
v2.0.2MITESM + CommonJSTypes: Bundled
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 19.5k
- +18% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- -
- v2.0.2
- GitHub stars
- -
- Open issues / PRs
- - / -
- Contributors
- -
- Commits, last 52 weeks
- -
Downloads
Last week 2026-09-15 to 2026-09-21
19,473 downloads last week, 97,815 in the last month. The 12-month change of +18% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 2.0.2
- First published
- -
- Last push to GitHub
- -
- Repository archived
- -
- Open issues
- -
- Open pull requests
- -
- Commits, last 52 weeks
- -
- Dependents on npm
- -
Major versions
-
Recent releases
-
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=16
- Runtimes
- -
- Unpacked size (npm)
- 83 kB
- Dependencies (0)
- None
npm install current-deviceCDN
jsDelivr: 1.2m requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/current-device@2.0.2/ - unpkg
https://unpkg.com/current-device@2.0.2/ - esm.sh
https://esm.sh/current-device@2.0.2
Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.