Licence
MIT
Version
0.0.5
Deps
0
Size
3 kB
Vulns
0
Weekly
0
tcp-connect
Check if a TCP port is reachable. Returns connection time in milliseconds.
Usage
var tcp = require('tcp-connect');
tcp(google.com, 80, 1000)
.then(() => console.log('google.com is available'))
.catch(() => console.log('no luck this time'));
Development
Tests are best run in docker:
docker-compose run tcp-connect npm test