Popularity
0.2
Declining
Activity
0.0
Stable
1
1
0

Monthly Downloads: 4
Programming language: Elixir
License: Apache License 2.0
Tags: Text And Numbers    

ua_parser2 alternatives and similar packages

Based on the "Text and Numbers" category.
Alternatively, view ua_parser2 alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ua_parser2 or a related project?

Add another 'Text and Numbers' Package

README

UAParser2

Build Status Hex pm

A port of ua-parser2 to Elixir

Installation

Add UAParser2 as a dependency to your project's mix.exs:

def application do
  [applications: [:ua_parser2]]
end

defp deps do
  [{:ua_parser2, github: "nazipov/ua_parser2-elixir"}]
end

and then run $ mix deps.get

Usage

iex(1)> UAParser2.parse("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0")
%UAParser2.Result{
  string: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0",
  device: nil,
  engine: %UAParser2.Result.Engine{
    family: "Gecko", 
    major: "47", 
    minor: "0",
    patch: nil, 
    type: nil
  },
  os: %UAParser2.Result.OS{
    family: "Mac OS X", 
    major: "10", 
    minor: "11",
    patch: nil, 
    patchMinor: nil, 
    type: nil
  },
  ua: %UAParser2.Result.UA{
    family: "Firefox", 
    major: "47", 
    minor: "0", 
    patch: nil, 
    type: nil
  }
}

License

Apache License, Version 2.0

The parser databases are taken from the commenthol/ua-parser2 project. See there for detailed license information about the data contained.


*Note that all licence references and agreements mentioned in the ua_parser2 README section above are relevant to that project's source code only.