HEX
Server: Apache/2.4.6 () PHP/7.4.33
System: Linux chile-dev-app-1 5.4.17-2136.315.5.el7uek.x86_64 #2 SMP Wed Dec 21 19:57:57 PST 2022 x86_64
User: apache (48)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/node_modules/serve/node_modules/is-port-reachable/index.d.ts
export interface Options {
	/**
	The host to check.

	Can be a domain (optionally, with a sub-domain) or an IP address.

	@example 'localhost'
	*/
	readonly host: string;

	/**
	The time to wait in milliseconds before giving up.

	@default 1000
	*/
	readonly timeout?: number;
}

/**
Check if a local or remote port is reachable.

@example
```
import isPortReachable from 'is-port-reachable';

console.log(await isPortReachable(80, {host: 'google.com'}));
//=> true
```
*/
export default function isPortReachable(port: number, options: Options): Promise<boolean>;