ua-parser-js
npmv2.0.10TypeScriptDetect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment
Overview
ua-parser-js is an npm package that detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment. The latest version is 2.0.10, released under the AGPL-3.0-or-later license.
Who should use it
Teams working in the npm ecosystem who need detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (AGPL-3.0-or-later).
Cons
- Large dependency tree (16 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of ua-parser-js.
Dependencies
Dev (13)
Used by
Popular packages that depend on ua-parser-js.
Alternatives to ua-parser-js
Lightweight browser detector
A freeze-test for your user-agent string
Converts a source-map from/to different formats and allows adding/changing properties.
Browser-friendly inheritance fully compatible with standard node.js inherits()
The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
Public API for OpenTelemetry
HTML5 `FormData` for Browsers and Node.
Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari
Get the default browser
Apple's property list parser/builder for Node.js and browsers
A JavaScript library to zip and unzip files in the browser, Deno and Node.js
Get the paths of edge browser easily
Frequently installed together
Bare bones Promises/A+ implementation
Immutable Data Collections
Create a stream that emits events from multiple other streams
A shim for the setImmediate efficient script yielding API
Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST
This package exports a few of the CSS variables that we use in Facebook projects. This is not the full list we have internally but focused on making available the minimum set needed by our open source projects.
Delightful JavaScript Testing.
Universal WHATWG Fetch API for Node, Browsers and React Native
Version history
| Version | Published | License |
|---|---|---|
| 2.0.10latest | 2 months ago | AGPL-3.0-or-later |
| 2.0.9 | 5 months ago | AGPL-3.0-or-later |
| 2.0.8 | 6 months ago | AGPL-3.0-or-later |
| 2.0.7 | 7 months ago | AGPL-3.0-or-later |
| 2.0.6 | 9 months ago | AGPL-3.0-or-later |
| 2.0.5 | 10 months ago | AGPL-3.0-or-later |
| 1.0.41 | 11 months ago | MIT |
| 0.7.41 | 11 months ago | MIT |
| 2.0.4 | 1 year ago | AGPL-3.0-or-later |
| 2.0.3 | 1 year ago | AGPL-3.0-or-later |
| 2.0.2 | 1 year ago | AGPL-3.0-or-later |
| 2.0.1 | 1 year ago | AGPL-3.0-or-later |
| 1.0.40 | 1 year ago | MIT |
| 0.7.40 | 1 year ago | MIT |
| 2.0.0 | 1 year ago | AGPL-3.0-or-later |
| 2.0.0-rc.3 | 1 year ago | AGPL-3.0-or-later |
| 2.0.0-rc.2 | 1 year ago | AGPL-3.0-or-later |
| 2.0.0-rc.1 | 1 year ago | AGPL-3.0-or-later |
| 1.0.39 | 1 year ago | MIT |
| 0.7.39 | 1 year ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install ua-parser-js?
Run `npm install ua-parser-js` to add ua-parser-js to your npm project.
What license is ua-parser-js released under?
ua-parser-js is distributed under the AGPL-3.0-or-later license.
How popular is ua-parser-js?
ua-parser-js has approximately 0 downloads per week and 1 known dependent packages.