2.3.3 • Published 6 months ago
@types/extract-domain v2.3.3
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
// Type definitions for extract-domain 2.3
// Project: https://github.com/bjarneo/extract-domain
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* 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: Thu, 08 Jul 2021 12:01:25 GMT
- Dependencies: none
- Global values:
extractDomain
Credits
These definitions were written by Piotr Błażejewicz.