Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tldts-experimental

Package Overview
Dependencies
Maintainers
1
Versions
732
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tldts-experimental

Library to work against complex domain names, subdomains and URIs.

  • 6.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
111K
decreased by-0.02%
Maintainers
1
Weekly downloads
 
Created
Source

tldts-experimental

faster, experimental, unstable version of tldts. It exposes the exact same API and is subjected to the same tests as the main library, but offers a different trade-off in terms of space, speed and accuracy.

See README.md from tldts for more details about the API.

Differences with tldts

The default tldts package is what you should use most of the time and what is imported out of the box. It makes use of an optimized DAWG (direct acyclic word graph) data-structure and delivers very good performances. If that is not enough, you can try the tldts-experimental package which implements a probabilistic data-structure. It is:

  • Must smaller (in terms of bundle size and memory footprint)
  • Loads instantly (no data loading or parsing required)
  • Much faster (lookups are up to 1.5-2x faster)

The drawback is that there might be some unlikely false positive (think bloom filters).

For more details, check the documentation from the following files:

  • building
  • lookups

Keywords

FAQs

Package last updated on 05 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc