Skip to content

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

License

Notifications You must be signed in to change notification settings

john-doherty/is-port-free

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published