Find a free port.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.npmignore
.travis.yml
license
package.json
readme.md

readme.md

freeport Build Status

Find a free port.

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