Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ua-utils

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ua-utils

  • 0.3.3
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

UA-UTILS

Utilities to parse user-agent strings.

First implementation is mainly focusing on most common operating systems and device types, so that content can be optimized.

Usage

Rails

In your Gemfile:

gem 'ua-utils'

bundle install and restart your server to make the files available.

Example

user_agent = UaUtils::UserAgent.new(user_agent_string)
or
os = UaUtils::OperatingSystem.new(user_agent_string)

Operating systems

Following operating systems can be detected:
windows, windows phone, mac os x, iOS, android, bada, meego, symbian

Devices

Following device types can be detected:
desktop, tablet, mobile, tv, bot

FAQs

Package last updated on 23 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc