🚀 Socket Launch Week 🚀 Day 1: Introducing .NET Support in Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/extract-domain

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/extract-domain

TypeScript definitions for extract-domain

2.3.1
ts3.6
ts3.7
ts3.8
ts3.9
ts4.0
ts4.1
ts4.2
ts4.3
ts4.4
Source
npm
Version published
Weekly downloads
4.1K
-22.74%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 08 Jul 2021

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