@plurid/plurid-functions
Version:
General Utility Functions for Plurid Applications
11 lines (10 loc) • 418 B
TypeScript
export declare const isIPv4: (value: string | undefined) => boolean;
export declare const isIPv6: (value: string | undefined) => boolean;
export declare const isIP: (value: string | undefined) => "ipv4" | "ipv6" | undefined;
/**
* Checks the value respects `<scheme> "://" <hostname> [ ":" <port> ]`.
*
* @param value
* @returns
*/
export declare const isOrigin: (value: string | undefined) => boolean;