UNPKG

@promptbook/remote-server

Version:

It's time for a paradigm shift. The future of software in plain English, French or Latin

12 lines (11 loc) 447 B
import type { string_hostname } from '../../../types/typeAliases'; /** * Checks if an URL is reserved for private networks or localhost. * * Note: There are two simmilar functions: * - `isUrlOnPrivateNetwork` which tests full URL * - `isHostnameOnPrivateNetwork` *(this one)* which tests just hostname * * @public exported from `@promptbook/utils` */ export declare function isHostnameOnPrivateNetwork(hostname: string_hostname): boolean;