Brandy.PublicSuffix
v1.2.0-ci.9Pre-release
.NETFramework3.5.NETFramework4.6.2.NETStandard1.3net6.0net8.0.NETStandard2.0
PublicSuffix - Domain Name parser using Mozilla's Public Suffix List (https://publicsuffix.org/)
Published
Apr 12, 2024
2y ago
Total Downloads
6.6K
6,616
Install
dotnet add package Brandy.PublicSuffix --version 1.2.0-ci.9
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
README
PublicSuffix
PublicSuffix - Highly optimized Domain Name parser using Mozilla's Public Suffix List (https://publicsuffix.org/)
Installation
Download the latest release from the NuGet repository
Install-Package Brandy.PublicSuffix
Examples
var parser = DomainParser.Default; // Loads rules from https://publicsuffix.org/list/effective_tld_names.dat
var domain = parser.Parse("xxx.www.takahama.aichi.jp");
Assert.IsTrue(domain.IsValid);
Assert.AreEqual("www.takahama.aichi.jp", domain.RegistrableDomain);
Assert.AreEqual("xxx", domain.Subdomain);
Assert.AreEqual("takahama.aichi.jp", domain.PublicSuffix);
Changes from Previous Version
No structural changes between v1.1.1-ci.7 and v1.2.0-ci.9.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 7 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.