@types/extract-domain
TypeScript icon, indicating that this package has built-in type declarations

2.3.3 • Public • Published

Installation

npm install --save @types/extract-domain

Summary

This package contains type definitions for extract-domain (https://github.com/bjarneo/extract-domain).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/extract-domain.

index.d.ts

/**
 * Performant domain name extraction. No regex or array magic.
 * This package will also remove the sub domain.
 */
declare function extractDomain(url: string, opts?: extractDomain.Options): string;
declare function extractDomain(urls: string[], options?: extractDomain.Options): string[];

declare namespace extractDomain {
    interface Options {
        tld?: boolean | undefined;
    }
}

export as namespace extractDomain;
export = extractDomain;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/extract-domain

Weekly Downloads

6,913

Version

2.3.3

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • types