https://github.com/thiagobarradas/uautil
User-Agent utility - Extract details from user-agent header
https://github.com/thiagobarradas/uautil
browser dotnet dotnet-core dotnet-core2 operating-system platform user-agent user-agent-parser
Last synced: 11 months ago
JSON representation
User-Agent utility - Extract details from user-agent header
- Host: GitHub
- URL: https://github.com/thiagobarradas/uautil
- Owner: ThiagoBarradas
- Created: 2017-11-19T20:10:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T15:02:02.000Z (over 6 years ago)
- Last Synced: 2025-01-13T10:08:48.046Z (about 1 year ago)
- Topics: browser, dotnet, dotnet-core, dotnet-core2, operating-system, platform, user-agent, user-agent-parser
- Language: C#
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
[](https://ci.appveyor.com/project/ThiagoBarradas/uautil/branch/master)
[](https://codecov.io/gh/ThiagoBarradas/uautil)
[](https://www.nuget.org/packages/UAUtil/)
[](https://www.nuget.org/packages/UAUtil/)
## UAUtil
User-Agent utility - Extract details from user-agent header
## Install via NuGet
```
PM> Install-Package UAUtil
```
## How to use
```csharp
string userAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko";
IUserAgentUtility UAUtil = new UserAgentUtility();
UserAgentDetails userAgentDetails = UAUtil.GetUserAgentDetails(userAgent);
// userAgentDetails.Platform : Desktop
// userAgentDetails.Browser : Internet Explorer
// userAgentDetails.BrowserVersion : 11
// userAgentDetails.OperatingSystem : Windows
// userAgentDetails.OperatingSystemVersion : 10
```
## How can I contribute?
Please, refer to [CONTRIBUTING](CONTRIBUTING.md)
## Found something strange or need a new feature?
Open a new Issue following our issue template [ISSUE-TEMPLATE](ISSUE-TEMPLATE.md)
## Changelog
See in [nuget version history](https://www.nuget.org/packages/UAUtil)
## Did you like it? Please, make a donate :)
if you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.
BTC Wallet: `1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX`
