{"id":13826543,"url":"https://github.com/shopify/browser_sniffer","last_synced_at":"2025-05-15T10:05:25.737Z","repository":{"id":656170,"uuid":"10796958","full_name":"Shopify/browser_sniffer","owner":"Shopify","description":"Properly detect what browser you are dealing with","archived":false,"fork":false,"pushed_at":"2025-05-12T20:30:07.000Z","size":117,"stargazers_count":118,"open_issues_count":3,"forks_count":19,"subscribers_count":477,"default_branch":"main","last_synced_at":"2025-05-15T10:03:55.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://shopify.github.io/browser_sniffer/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shopify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-06-19T15:24:42.000Z","updated_at":"2025-04-28T11:28:15.000Z","dependencies_parsed_at":"2025-01-10T15:10:14.908Z","dependency_job_id":"897b46b5-fb0d-4609-8cd0-4b4f2cda491d","html_url":"https://github.com/Shopify/browser_sniffer","commit_stats":{"total_commits":76,"total_committers":29,"mean_commits":"2.6206896551724137","dds":0.881578947368421,"last_synced_commit":"dbfc9ae66584f3a436cb4a722b9df5427266f7bc"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fbrowser_sniffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fbrowser_sniffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fbrowser_sniffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fbrowser_sniffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shopify","download_url":"https://codeload.github.com/Shopify/browser_sniffer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319718,"owners_count":22051072,"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":[],"created_at":"2024-08-04T09:01:40.028Z","updated_at":"2025-05-15T10:05:20.679Z","avatar_url":"https://github.com/Shopify.png","language":"Ruby","funding_links":[],"categories":["\u003ca id=\"7bf0f5839fb2827fdc1b93ae6ac7f53d\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"32739127f0c38d61b14448c66a797098\"\u003e\u003c/a\u003e嗅探\u0026\u0026Sniff"],"readme":"[![Build Status](https://github.com/Shopify/browser_sniffer/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/Shopify/browser_sniffer/actions/workflows/test.yml)\n[![Gem Version](https://badge.fury.io/rb/browser_sniffer.png)](http://badge.fury.io/rb/browser_sniffer)\n\n# BrowserSniffer\n\n## Description\n\nParses user agent strings and boils it all down to a few simple classifications.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem \"browser_sniffer\"\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ git clone https://github.com/Shopify/browser_sniffer \u0026\u0026 cd browser_sniffer \u0026\u0026 bundle install \u0026\u0026 rake install\n\n## Usage\n\n```ruby\nrequire \"browser_sniffer\"\n\nclient_info = BrowserSniffer.new(request.user_agent)\nclient_info.form_factor           # =\u003e :tablet\nclient_info.browser               # =\u003e :safari\nclient_info.major_browser_version # =\u003e 4\nclient_info.engine                # =\u003e :webkit\nclient_info.major_engine_version  # =\u003e 531\nclient_info.os                    # =\u003e :ios\nclient_info.os_version            # =\u003e 3.2\n```\n\n## Contributing\n\nFork, branch \u0026 pull request.\n\n## Licensing\n\nBased off [UAParser.js](https://github.com/faisalman/ua-parser-js)\n\nCopyright (c) 2013 Shopify  \nCopyright (c) 2012-2013 Faisalman \u003cfyzlman@gmail.com\u003e  \nDual licensed under GPLv2 \u0026 MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopify%2Fbrowser_sniffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopify%2Fbrowser_sniffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopify%2Fbrowser_sniffer/lists"}