Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
User Agent Parser for Erlang
branch: master

This branch is 6 commits behind pusewicz:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
ebin
src
test
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
Watchfile
rebar
rebar.config

README.md

User Agent Parser

This small library allows you to quickly extract the platform and browser out of the user agent.

Usage

UA = ua_agent:new("Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/526.9 (KHTML, like Gecko) Version/4.0dp1 Safari/526.8").
UA:platform(). # => "Windows"
UA:browser().  # => "Safari"
Something went wrong with that request. Please try again.