{"id":15744835,"url":"https://github.com/meilcli/detectioncore","last_synced_at":"2026-03-08T01:31:23.762Z","repository":{"id":69256030,"uuid":"71520743","full_name":"MeilCli/DetectionCore","owner":"MeilCli","description":"A browser detect library for .NET Standard","archived":false,"fork":false,"pushed_at":"2019-09-28T15:27:28.000Z","size":52,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T01:41:32.371Z","etag":null,"topics":["browser-detection","user-agent"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MeilCli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-21T02:06:02.000Z","updated_at":"2019-09-28T15:27:30.000Z","dependencies_parsed_at":"2023-02-22T14:16:26.886Z","dependency_job_id":null,"html_url":"https://github.com/MeilCli/DetectionCore","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeilCli%2FDetectionCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeilCli%2FDetectionCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeilCli%2FDetectionCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeilCli%2FDetectionCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeilCli","download_url":"https://codeload.github.com/MeilCli/DetectionCore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251420004,"owners_count":21586528,"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":["browser-detection","user-agent"],"created_at":"2024-10-04T04:01:11.328Z","updated_at":"2026-03-08T01:31:23.704Z","avatar_url":"https://github.com/MeilCli.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DetectionCore\n[![Build Status](https://meilcli.visualstudio.com/DetectionCore/_apis/build/status/MeilCli.DetectionCore?branchName=master)](https://meilcli.visualstudio.com/DetectionCore/_build/latest?definitionId=20\u0026branchName=master) [![NuGet version](https://badge.fury.io/nu/DetectionCore.svg)](https://www.nuget.org/packages/DetectionCore)  \nA browser detect library for .NET Standard 2.0.\n\n## NuGet\n\n[NuGet](https://www.nuget.org/packages/DetectionCore/)\n\n~~~\nInstall-Package DetectionCore\n~~~\n\n## Detect\n\n### Browser\n- Internet Explorer\n- Microsoft Edge\n- Chrome\n- Firefox\n- Safari\n- Opera\n- NintendoBrowser\n\n```csharp\nstring userAgent = \"mozilla/5.0 (Linux; Android 6.0.1; Nexus 5x build/mtc19t applewebkit/537.36 (KHTML, like Gecko) Chrome/51.0.2702.81 Mobile Safari/537.36\";\nif (userAgent.TryDetectBrowser(out BrowserType browserType, out string? browserDetail))\n{\n    Console.WriteLine($\"BrowserType: {Enum.GetName(typeof(BrowserType), browserType)}\"); // BrowserType: Chrome\n    Console.WriteLine($\"Browser: {browserDetail}\"); // Browser: Chrome 51\n}\n```\n\n### Platform\n- Windows(each consumer version, over WindowsXP)\n- MacOS(each version, over Mac OS X v10.5)\n- Chrome OS\n- Ubuntu\n- Mint Linux\n- Fedora\n- Gentoo\n- FreeBSD\n- OpenBSD\n- NetBSD\n- Nintendo Wii\n- Nintendo WiiU\n- Nintendo Switch\n- Nintendo 3DS\n- PlayStation 2\n- PlayStation 3\n- PlayStation 4\n- PlayStation Vita\n- iOS\n- Android\n- Windows Phone\n\n```csharp\nstring userAgent = \"mozilla/5.0 (Linux; Android 6.0.1; Nexus 5x build/mtc19t applewebkit/537.36 (KHTML, like Gecko) Chrome/51.0.2702.81 Mobile Safari/537.36\";\nif (userAgent.TryDetectPlatform(out PlatformType platformType, out string? platformDetail))\n{\n    Console.WriteLine($\"PlatformType: {Enum.GetName(typeof(PlatformType), platformType)}\"); // PlatformType: Android\n    Console.WriteLine($\"Platform: {platformDetail}\"); // Android 6.0.1\n}\n```\n\n## Request Newer Detection\n[@MeilCli](https://github.com/MeilCli) don't regularly use this library, but would like to add a new detection if requested.\n\n[Create Issue from Template](https://github.com/MeilCli/DetectionCore/issues/new/choose)\n\n## Develop Environment\n- C# 8.0\n- Visual Studio 2019 Preview\n- .NET Core 2.2 and 3.0\n\n[See Contributing Document](.github/CONTRIBUTING.md)\n\n## License\n\nThis library is under MIT License.\n\n### Using\n- [System.Memory](https://www.nuget.org/packages/System.Memory/), published by [MIT License](https://github.com/dotnet/corefx/blob/master/LICENSE.TXT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeilcli%2Fdetectioncore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeilcli%2Fdetectioncore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeilcli%2Fdetectioncore/lists"}