0.1.1 • Published 8 years ago

dvar-ext-consul v0.1.1

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

#dvar-ext-consul

This is a consul extension for dvar.

###Install

npm install dvar --save

npm install dvar-ext-consul --save

###Usage

const dvar = require('dvar')
const dvarConsul = require('dvar-ext-consul')

dvar.addExtension('consul', dvarConsul).configure([
  {
    type: 'consul',
    host: 'localhost',
    port: 9111,
    secure: false,
    keyPrefix: 'test'
  }
], (err, res) => {
  console.log(res.get('testKey')) //assuming there is a 'testKey' entry
})
0.1.1

8 years ago

0.1.0

8 years ago