0.1.0 • Published 8 years ago

watch-consul v0.1.0

Weekly downloads
13
License
-
Repository
-
Last release
8 years ago

watch-consul

A simple utility for watching a JSON key on a consul server and triggering a callback initially and whenever a change occurs.

import watchConsul from 'watch-consul';

const watch = () =>
  watchConsul({url: 'my-consul-server:8500', key: '/my/key/to/watch'})
    .then(console.log.bind(console))
    .catch(console.error.bind(console))
    .then(watch);

watch();
0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago