ua-parser-js

popular esm cjs
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment
Version 2.0.4 License AGPL-3.0-or-later
Keywords
user-agentclient-hintsparserbrowserengineosdevicecpujquery-pluginecosystem:jqueryua-parser-jsbrowser-detectiondevice-detectionos-detectionbot-detection
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.40
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.2
- 1.0.1
- 0.8.1
- 0.7.40
- 0.7.39
- 0.7.38
- 0.7.37
- 0.7.36
- 0.7.35
- 0.7.34
- 0.7.33
- 0.7.32
- 0.7.31
- 0.7.30
- 0.7.28
- 0.7.27
- 0.7.26
- 0.7.25
- 0.7.24
- 0.7.23
- 0.7.22
- 0.7.21
- 0.7.20
- 0.7.19
- 0.7.18
- 0.7.17
- 0.7.16
- 0.7.15
- 0.7.14
- 0.7.13
- 0.7.12
- 0.7.11
- 0.7.10
- 0.7.9
- 0.7.7
- 0.7.6
- 0.7.4
- 0.7.3
- 0.7.1
- 0.7.0
- 0.6.2
- 0.6.0
- 0.5.27
- 0.5.25
- 0.5.23
- 0.5.22
- 0.5.20
- 0.5.15
- 0.5.12
- 0.5.11
- 0.5.3
- 0.5.2
- 0.5.1
- 0.4.15
- 0.4.13
- 0.4.7
- 0.4.6
- 0.4.4
- 0.4.3
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 2.0.0-rc.3
- 2.0.0-rc.2
- 2.0.0-rc.1
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
- 2.0.0-alpha.3
- 2.0.0-alpha.2
- 2.0.0-alpha.1
<script src=" https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.4/dist/ua-parser.pack.min.js "></script>
UAParser.js
The most comprehensive, compact, & up-to-date isomorphic JavaScript library to detect user's Browser, Engine, OS, CPU, and Device type/model. Runs either in browser (client-side) or node.js (server-side).
Demo
- Live demo: https://uaparser.dev
Documentation
version 1.x
: https://github.com/faisalman/ua-parser-js/tree/1.0.x#documentationversion 2.x
: https://docs.uaparser.dev
Before upgrading from v0.7
/ v1.0
, please read CHANGELOG to
see what's new & breaking.
License Options
Open-Source Editions | PRO / Commercial Editions | ||||
---|---|---|---|---|---|
License options | MIT (v0.7~v1.0) | AGPL (>=v2.0) | PRO Personal | PRO Business | PRO Enterprise |
Browser detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
CPU detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
Device detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
Engine detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
OS detection | ⚠️ | ✅ | ✅ | ✅ | ✅ |
Bot detection | ❌ | ✅ | ✅ | ✅ | ✅ |
AI Bot detection | ❌ | ✅ | ✅ | ✅ | ✅ |
Extras (Apps, Libs, Emails, Media Players, etc) detection | ❌ | ✅ | ✅ | ✅ | ✅ |
Enhanced detection result | ❌ | ✅ | ✅ | ✅ | ✅ |
Client Hints support | ❌ | ✅ | ✅ | ✅ | ✅ |
CommonJS support | ✅ | ✅ | ✅ | ✅ | ✅ |
ES modules support | ❌ | ✅ | ✅ | ✅ | ✅ |
npm module | ✅ | ✅ | ✅ | ✅ | ✅ |
TypeScript declarations | ⚠️ | ✅ | ✅ | ✅ | ✅ |
Allows commercial use | ✅ | ✅ | ❌ | ✅ | ✅ |
Permissive (non-copyleft) license | ✅ | ❌ | ✅ | ✅ | ✅ |
Unlimited use per 1 license | ✅ | ✅ | ✅ | ❌ | ✅ |
1-year product support | ❌ | ❌ | ✅ | ✅ | ✅ |
Lifetime updates | ✅ | ✅ | ✅ | ✅ | ✅ |
Price | FREE (License) | FREE (License) | $14 (License) | $29 (License) | $599 (License) |
GET THE PRO PACKAGES 📥 |
Development
Contributors
Please read CONTRIBUTING guide first for the instruction details.
Made with contributors-img.
Backers & Sponsors
You can support the open-source editions of UAParser.js through one of the following options: