UNPKG

is-host-local

Version:

A utility to check if a hostname resolves to a local IP address

8 lines (7 loc) 299 B
/** * Checks if a hostname resolves to a local IP address * @param hostname The hostname to check * @returns Promise<boolean | null> - true if local, false if not local, null if error */ export declare function isHostLocal(hostname: string): Promise<boolean | null>; export default isHostLocal;