boxfishconsul

Consul library for the boxfish ads platform

Usage no npm install needed!

<script type="module">
  import boxfishconsul from 'https://cdn.skypack.dev/boxfishconsul';
</script>

README

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