1.0.7 • Published 6 years ago

is-port-free v1.0.7

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

is-port-free

Shippable branch npm Linked In Twitter Follow

A simple node module to check if a TCP port is free on the local machine. See also is-port-busy

Installation

$ npm install --save is-port-free

Example

var isPortFree = require('is-port-free');

isPortFree(8080).then(function(){
    console.log('yes');
})
.catch(function(){
    console.log('no');
});

Running tests

Install dev dependencies and run tests:

$ npm install -d && npm test

License

Licensed under ISC License © John Doherty