openport

Finds open network ports.

npm install openport
7 downloads in the last day
40 downloads in the last week
161 downloads in the last month

openport

Finds open network ports.

Installation

$ npm install openport

Quick Examples

var op = require('openport');

op.find(function(err, port) {
  if(err) { console.log(err); return; }
  // yea! we have an open port.
});

op.find(
  {
    ports: [ 1024, 1025, 1026, 1028 ],
    count: 2
  }
  function(err, ports) {
    if(err) { console.log(err); return; }
    // yea! we have two open ports.
  }
);

op.find(
  {
    startingPort: 1024,
    endingPort: 2000
  }
  function(err, port) {
    if(err) { console.log(err); return; }
    // yea! we have an open port between 1024 and 2000.
  }
);
npm loves you