You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
arnaucode 112745d6fa init 8 years ago
..
lib init 8 years ago
test init 8 years ago
.npmignore init 8 years ago
.travis.yml init 8 years ago
LICENSE init 8 years ago
README.md init 8 years ago
package.json init 8 years ago

README.md

node-portfinder Build Status

Installation

Installing npm (node package manager)

  curl http://npmjs.org/install.sh | sh

Installing node-portfinder

  $ [sudo] npm install portfinder

Usage

The portfinder module has a simple interface:

  var portfinder = require('portfinder');

  portfinder.getPort(function (err, port) {
    //
    // `port` is guaranteed to be a free port
    // in this scope.
    //
  });

By default portfinder will start searching from 8000. To change this simply set portfinder.basePort.

Run Tests

  $ npm test

Author: Charlie Robbins

License: MIT/X11