Library to work against complex domain names, subdomains and URIs
82
Trie-based suffix lookup with wildcard and exception rules
Uses tldts library
100%
100%
Uses parse function
100%
100%
Extracts publicSuffix field
100%
100%
Extracts domain field
100%
100%
Extracts subdomain field
100%
100%
Handles multi-level TLDs
100%
100%
Wildcard rule support
100%
100%
Public suffix (TLD) extraction
Public suffix extraction
100%
100%
ICANN domain identification
100%
100%
Private domain handling
100%
100%
IP address detection
100%
100%
TLD grouping logic
100%
100%
Invalid URL handling
100%
100%
URL and hostname parsing
Import tldts
100%
100%
Use parse function
100%
100%
Extract domain field
100%
100%
Extract subdomain field
100%
100%
Extract publicSuffix field
100%
100%
Extract hostname field
100%
100%
Handle isIp detection
100%
100%
Unicode/IDNA domain support
Uses tldts parse function
100%
60%
Handles Unicode domains
20%
50%
Handles Punycode domains
20%
53%
Extracts email domains
100%
0%
Extracts subdomain correctly
40%
0%
Extracts publicSuffix correctly
40%
0%
Uses domain property
60%
0%
Email domain parsing
Domain extraction
100%
0%
Public suffix extraction
100%
0%
Subdomain extraction
100%
0%
Domain without suffix
100%
0%
IP detection
100%
20%
Unicode/IDNA handling
100%
0%
Complex edge case handling (leading/trailing dots, unknown TLDs, single-label hostnames)
Import tldts functions
100%
100%
Parse input URLs
100%
100%
Extract hostname correctly
80%
80%
Extract domain correctly
100%
100%
Extract public suffix
100%
100%
Detect normalization requirement
100%
93%
Detect known TLDs
100%
100%
Subdomain extraction
Uses getSubdomain function
0%
100%
Imports tldts correctly
100%
100%
Handles null returns
25%
100%
Single URL analysis
66%
100%
Batch URL analysis
100%
100%
Handles empty subdomains
100%
100%
Custom hostname support (validHosts option)
Uses tldts library
100%
100%
Applies validHosts option
0%
100%
Extracts hostname correctly
100%
100%
Extracts domain correctly
60%
100%
Extracts subdomain correctly
60%
100%
Hostname extraction from URLs
getHostname usage
0%
100%
IP detection
25%
100%
Batch processing
100%
100%
Hostname validation
100%
100%
Grouping implementation
100%
100%
Options usage
0%
0%
ICANN vs Private domain distinction
parse() usage
100%
100%
allowPrivateDomains option
100%
100%
isIcann flag check
0%
100%
isPrivate flag check
100%
100%
domain field extraction
100%
100%
publicSuffix extraction
100%
100%
subdomain extraction
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-tldts