DEV Community

Cover image for ua-parser-modern: TypeScript UA Parser for Browser & Device
jQueryScript
jQueryScript

Posted on

ua-parser-modern: TypeScript UA Parser for Browser & Device

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.

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)