UNPKG

@deepkit/core

Version:
13 lines (12 loc) 380 B
export declare class ParsedHost { host: string; port: number; unixSocket: string; get isUnixSocket(): boolean; get isHostname(): boolean; get hostWithIp(): string; toString(): string; getWebSocketUrl(secure?: boolean): string; getHttpUrl(secure?: boolean): string; } export declare function parseHost(hostWithIpOrUnixPath: string): ParsedHost;