Nonflavored Prescription Medicine
Wondering what’s next for npm?Check out our public roadmap! »

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

496

Version

1.0.7

License

ISC

Unpacked Size

5.99 kB

Total Files

10

Last publish

Collaborators

  • avatar