T

Tldts

JavaScript Library to extract domains, subdomains and public suffixes from complex URIs.

Free

About Tldts

tldts is a fast JavaScript utility to extract hostnames, domains, public suffixes, top-level domains, and subdomains from URLs.

Key Features:

  • Tuned for performance (order of 0.1 to 1 μs per input)
  • Handles both URLs and hostnames
  • Full Unicode/IDNA support
  • Support parsing email addresses
  • Detect IPv4 and IPv6 addresses
  • Continuously updated version of the public suffix list
  • TypeScript, ships with umd, esm, cjs bundles and type definitions
  • Small bundles and small memory footprint
  • Battle tested: full test coverage and production use.

Tags:

#Productivity#DevTools#Open Source#Github
Previous Tool Next Tool