Skip to content

User-Agent utility - Extract details from user-agent header

Notifications You must be signed in to change notification settings

ThiagoBarradas/uautil

Repository files navigation

Build status codecov NuGet Downloads NuGet Version

UAUtil

User-Agent utility - Extract details from user-agent header

Install via NuGet

PM> Install-Package UAUtil

How to use

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

Found something strange or need a new feature?

Open a new Issue following our issue template ISSUE-TEMPLATE

Changelog

See in nuget version history

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

1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX