Check if a local or remote port is reachable
npm install is-port-reachable> Check if a local or remote port is reachable
``sh`
npm install is-port-reachable
`js
import isPortReachable from 'is-port-reachable';
console.log(await isPortReachable(80, {host: 'google.com'}));
//=> true
`
Returns Promise for whether the port is reachable.
##### port
Type: number
The port to check.
#### options
Type: object
##### host
Required\
Type: string\'localhost'
Example:
The host to check.
Can be a domain (optionally, with a sub-domain) or an IP address.
##### timeout
Type: number\1000`
Default:
The time to wait in milliseconds before giving up.
- is-reachable - Check if servers are reachable