
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
@types/extract-domain
Advanced tools
npm install --save @types/extract-domain
This package contains type definitions for extract-domain (https://github.com/bjarneo/extract-domain).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/extract-domain.
/**
* 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;
These definitions were written by Piotr Błażejewicz.
FAQs
TypeScript definitions for extract-domain
The npm package @types/extract-domain receives a total of 2,925 weekly downloads. As such, @types/extract-domain popularity was classified as popular.
We found that @types/extract-domain demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.