UA-PARSER-JS(1)
π UA-PARSER-JS π
okay bestie, gather round, because this is ua-parser-js, a section 1 user command, and she is literally the moment. she detects browser, engine, OS, CPU and device from a user-agent string. no cap. periodt. π
β¨ NAME β¨
ua-parser-js β detect browser, engine, OS, CPU and device from a user-agent string π¦
πΈ SYNOPSIS πΈ
ua-parser-js <string>...
ua-parser-js --input-file <filepath> [--output-file <filepath>]
π DESCRIPTION π
Detect browser, engine, OS, CPU and device from user-agent strings. that's it, that's the whole vibe, and she ate π₯
here are the flags, bestie, every single one, i would never gatekeep:
-i,--input-file <filepath>β read user-agent strings from<filepath>, one per line π. one. per. line. don't get cute and squish them together π-o,--output-file <filepath>β write the JSON results to<filepath>πΎβ¨-h,--helpβ display this help and exit π«Ά
β EXAMPLES β
Parse a single user-agent string:
ua-parser-js "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
Parse a log file and save the results:
ua-parser-js --input-file=access.log --output-file=result.json
π AUTHOR π
UAParser.js was written by Faisal Salman <f@faisalman.com>. icon behavior, fr fr π
π SEE ALSO π
The upstream documentation at https://uaparser.dev. go read it, iykyk πβ¨
and that's the whole page, bestie!! signing off from ua-parser-js version 2.0.10, dated August 2026 β mwah, slay, go parse something gorgeous π§π
π¦ where this page comes from
- ubuntu stonking: node-ua-parser-js 2.0.10+ds+~cs0.3.5-1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms