npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

is-port-free

1.0.7 • Public • Published

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

install

npm i is-port-free

Downloadsweekly downloads

1,075

version

1.0.7

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability