1.1.0 • Published 7 years ago
boxfishconsul v1.1.0
BoxfishConsul.js
Installation
npm install boxfishconsul --save
Usage
start up
var consulService = require('boxfishconsul').init();
find service
consulService.findService('service_name').then(function(serviceInstance) {
// do something
}, function(error) {
// noooo
});
Run test
npm test