node package manager

freeport

freeport Build Status

Find a free port.

freeport(function(err, port) {
  if (err) throw err
  console.log(port)
})