How to use the tldts-experimental.getHostname function in tldts-experimental

To help you get started, we’ve selected a few tldts-experimental examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cliqz-oss / adblocker / packages / adblocker-benchmarks / blockers / duckduckgo.js View on Github external
match({ url, type, frameUrl }) {
    return abp.matches(this.parsed, url, {
      domain: getHostname(frameUrl),
      elementTypeMask: DDG_OPTIONS[type],
    });
  }
};

tldts-experimental

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

MIT
Latest version published 1 day ago

Package Health Score

80 / 100
Full package analysis