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

IDE

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

Free
Writerside logo

Writerside

IDE

IDE for writing documentation.

Free
vscode.dev logo

vscode.dev

IDE

VS Code running fully in the browser.

Free