freeport-promise

A promise to find a free port.


License
ISC
Install
npm install freeport-promise@1.1.0

Documentation

freeport-promise

Build Status Coverage Status

Like freeport but with promises.

freeport()
.then(port => {
  console.log(port)
})

Using other promise libraries

By default we use the language-level Promise class, but if you want to use a different implementation, just pass it in as an argument:

const bluebird = require('bluebird')

freeport(bluebird)
.then(port => {
  console.log(port)
})