The `useragent` package, currently at version 2.3.0, is an abandoned Node.js library designed for parsing user agent strings. It was developed to provide high accuracy by leveraging hand-tuned regular expressions derived from Browserscope's research, aiming to correctly identify browser names and versions where generic parsers might fail. The library differentiated itself through a benchmark-driven approach, claiming superior performance with a pre-compiled regular expression library and deferred parsing for OS and device information. It also offered an optional feature to fetch live, updated parsing rules from remote servers, requiring additional `yamlparser` and `request` dependencies. However, the package has not seen updates since its last publish 8 years ago, indicating it is no longer actively maintained and its user agent data is significantly out of date, making it unsuitable for modern applications.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This package is CommonJS-only. Direct ESM import will fail without a compatibility layer.
The primary parsing function is a method of the default export, not a named export itself.
The `Agent` instance is returned by `useragent.parse` and is not directly exported for import.
Demonstrates basic usage of `useragent.parse()` with server-side and optional client-side user agent strings, and how to access parsed properties.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.