1.0.4 • Published 6 years ago

portopen v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

is-port-reachable Build Status

Check if a local or remote port is reachable

Install

$ npm install --save is-port-reachable

Usage

const isPortReachable = require('is-port-reachable');

isPortReachable(80, {host: 'google.com'}).then(reachable => {
	console.log(reachable);
	//=> true
});

API

isPortReachable(port, options)

Returns a Promise for a boolean.

port

Type: number

options

host

Type: string Default: localhost

Can be a domain or an IP.

timeout

Type: number Default: 1000

Milliseconds to wait before giving up.

Related

License

MIT © Sindre Sorhus

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago