Skip to content
JS
Package

device

Device type detection library based on the useragent string. Refactored from express-device.

v0.3.12, 31 Oct 2020MITCommonJSTypes: None
$ npm install device

Key numbers

As of 25 Sept 2026
Weekly downloads
21.3k
+2% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
5 years ago
v0.3.12
GitHub stars
79
27 forks
Open issues / PRs
1 / 3
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60kSept 2025Mar 2026Sept 2026High 41k (18 Aug 2026)Low 14k (30 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

21,252 downloads last week, 112,140 in the last month. The 12-month change of +2% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.3.12, 31 Oct 20205 years ago
First published
-
Last push to GitHub
18 Mar 2026190 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
3
Commits, last 52 weeks
1
Dependents on npm
28

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=8.x
Runtimes
-
Unpacked size (npm)
16 kB
Dependencies (1)
useragent
npm install device
  • jsDelivrhttps://cdn.jsdelivr.net/npm/device@0.3.12/
  • unpkghttps://unpkg.com/device@0.3.12/
  • esm.shhttps://esm.sh/device@0.3.12
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.