{"id":16415416,"url":"https://github.com/sneako/os_detect","last_synced_at":"2025-09-12T02:40:40.678Z","repository":{"id":51058337,"uuid":"279977271","full_name":"sneako/os_detect","owner":"sneako","description":"Quickly determine the operating system from user-agent strings with binary pattern matching.","archived":false,"fork":false,"pushed_at":"2023-09-06T08:42:13.000Z","size":97,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-31T23:05:14.639Z","etag":null,"topics":["elixir","user-agent","user-agent-parser"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/os_detect","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sneako.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-15T20:58:41.000Z","updated_at":"2024-08-22T14:52:27.000Z","dependencies_parsed_at":"2022-09-13T11:21:09.912Z","dependency_job_id":null,"html_url":"https://github.com/sneako/os_detect","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneako%2Fos_detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneako%2Fos_detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneako%2Fos_detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sneako%2Fos_detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sneako","download_url":"https://codeload.github.com/sneako/os_detect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238394323,"owners_count":19464583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","user-agent","user-agent-parser"],"created_at":"2024-10-11T07:05:38.186Z","updated_at":"2025-02-12T00:32:00.496Z","avatar_url":"https://github.com/sneako.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OsDetect\n\nA simple, fast user-agent parsing library.\n\nIt is much faster than other user agent parsing libraries because it users\nbinary pattern matching for many common cases, and it *only* returns the\noperating system name, browser name, and a type atom.\n\nIt can also detect most types of bots/scrapers that are not actively trying to\nhide their identities.\n\nSee [OsDetect.Result](/lib/os_detect/result.ex) for all possible types.\n\nMost other libraries tend to be purely regex based and return more information,\nmuch more slowly.\n\n## Installation\n\nAdd `os_detect` to your `mix.exs` dependencies:\n\n```elixir\ndef deps do\n  [\n    {:os_detect, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\nOsDetect.parse(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36\")\n%OsDetect.Result{browser: \"chrome\", os: \"mac os\", type: :desktop}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsneako%2Fos_detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsneako%2Fos_detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsneako%2Fos_detect/lists"}