ua-parser-modern: a TypeScript ESM library that parses browser, OS, device type, CPU architecture, and rendering engine from any user-agent string.
Key highlights:
- Named exports:
parseBrowser,parseOS,parseDevice,parseEngine,parseCPU - Lazy evaluation — each section parses only on first access
- Tree-shakeable: import only what your project needs
- Custom regex extension API for proprietary crawlers and internal clients
- Brave and iPadOS detection beyond standard UA regex matching
Works in browser and Node.js. A modern, functional alternative to ua-parser-js.
Top comments (0)