1.1.1 • Published 8 years ago

seaport-autopilot v1.1.1

Weekly downloads
5
License
BSD-3-Clause
Repository
github
Last release
8 years ago

seaport-autopilot

NPM

seaport-autopilot takes care of most of the work getting you an available port, finding a seaport and staying connected to that seaport.

it makes your app more plug-n-play.

npm install seaport-autopilot

Usage

var seaportautopilot = require('seaport-autopilot')

seaportautopilot('myservicename', function (err, port, path) {
  if (err) return console.log('something serious happened, die with', err)

  // here you have a shiny new port, and will be available on an auto-connected seaport      
  // if it looses the seaport, it will auto-reconnect as well when it comes back

})

License

MIT