T

Tldts

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

Pricing: Free
Visit website

What is 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.

More tools in IDE

Zed logo

Zed

High-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

IDE
Free
Writerside logo

Writerside

IDE for writing documentation.

IDE
Free
vscode.dev logo

vscode.dev

VS Code running fully in the browser.

IDE
Free