checkservice
v1.0.1
Published
Check if a service is listening on a tcp port
Downloads
3
Maintainers
Readme
checkservice
Check if a service is listening on a tcp port
Usage
npm install checkservice
var checkservice = require('checkservice');
checkservice('example.com', 80, function (err, res) {
if (err) {
console.log('Error! No service could be reached on example.com tcp port 80', err)
} else if (res) {
console.log('Success! A service is listening on example.com tcp port 80');
}
});
License
MIT (c) 2016 Sebastian Raff