{UAParser.js} is a 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).
{UAParser.js} abstracts away the hassle of User-Agent detection by turning them into a set of simple & meaningful data. As an example, this is what we get from your browser's User-Agent information:
In addition with some browser-supplied data, {UAParser.js} will transforms it into a well-structured format:
User-Agent string as of today is a mess. On the other hand, there is no reliable way to identify user details.
{UAParser.js} filters the noise away & extracts only the most meaningful data: Browser, Engine, OS, CPU, & Device in a well-structured format.
No dependencies. No bloated framework. No transpiler needed. No unnecessary boilerplate. No large-sized files required.
Just a good ol' ES3-compatible syntax that is able to run on relatively old browsers while also performs on most modern devices.
For jQuery user, {UAParser.js} automatically detects and generates a plugin as $.ua
Also, for TypeScript user, there is a community-maintained types: @types/ua-parser-js
Whether it's a client-side webpage running in a browser, or a server-side node.js app, simply type:
$ npm i ua-parser-js"A great utility library to have when you're investigating what kind of users are visiting your website and how you can improve their UX. Supports most browsers out there."
Gabrijel Golubić - Frontend Web Developer
"I've been using your library for a long time and it totally rocks!".
Christian Rich - Web Developer
"Thank you for putting out this very useful library!".
Anuj Nijhawan - Web Developer
Open-Source Editions | Commercial Editions | ||||
---|---|---|---|---|---|
License | MIT | AGPL | PRO Personal | PRO Business | PRO Enterprise |
Browser detection | |||||
CPU detection | |||||
Device detection | |||||
Engine detection | |||||
OS detection | |||||
Enhanced detection | |||||
Client Hints support | |||||
Extras (Apps, Bots, Libs, Emails, Media Players, etc) | |||||
CommonJS support | |||||
ES modules support | |||||
TypeScript declarations available | |||||
Public npm module available | |||||
Direct downloads available | |||||
Allowed for commercial use | |||||
Permissive license | |||||
Unlimited use per 1 license | |||||
1-year limited support | |||||
Lifetime updates | |||||
Price | FREE | FREE | $12 | $25 | $500 |
GET THE PACKAGE |
Copied!