Registry / utility / user-agent-parser

user-agent-parser

JSON →
library2.21.0rbrubygemsunverified

A simple, comprehensive Ruby gem for parsing user agent strings with the help of BrowserScope's UserAgent database

gem install user_agent_parser
INSTALL
IMPORT
SIG · USER-AGENT-PARSER
U
user-agent-parser
utilityrubyv2.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UserAgentParser
require 'user_agent_parser'

Parse a user agent string to extract browser and device information

require 'user_agent_parser' ua = UserAgentParser.parse('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36') puts ua.browser # => "Chrome"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.21.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
user-agent-parser — gem install user-agent-parser · libregistry