fast_uaparser v0.0.2 FastUaparser

Documentation for FastUaparser.

Link to this section Summary

Functions

Extract client engine info from a splitted regex list like

Parses user agent.

Link to this section Functions

Link to this function

extract_engine_info(splitted)

Specs

extract_engine_info(list()) ::
  {:ok, FastUaparser.EngineInfo.t()} | {:error, :bad_format | :empty}

Extract client engine info from a splitted regex list like:

[["Firefox/5.0 (Linux)", "Firefox", "5.0", "Linux"] | _]
Link to this function

parse_ua(user_agent)

Specs

parse_ua(binary()) :: {:ok, FastUaparser.UserAgent.t()} | {:error, any()}

Parses user agent.