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

is-port-busy

1.0.5 • Public • Published

is-port-busy

Shippable branch npm Linked In Twitter Follow

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

Installation

$ npm install --save is-port-busy

Example

var isPortBusy = require('is-port-busy');
 
isPortBusy(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-busy

DownloadsWeekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

7.25 kB

Total Files

12

Last publish

Collaborators

  • avatar