A simple tool to find an open port or domain socket on the current machine
Latest commit 728cb6a Oct 19, 2016 @eriktrom eriktrom committed on GitHub Merge pull request #46 from indexzero/cleanup/bash-windows-10-finalize
Document and cleanup bash windows 10 support


node-portfinder Build Status


  $ [sudo] npm install portfinder


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

Maintainer: Erik Trom

License: MIT/X11