Consul Key/Value reader
A simple node.js wrapper arround Consul, currently focused in storing and getting persistent key/values.
Installation
npm install consult
Usage
- Install Consul in your VM.
- The library will connect an existing Consul installation.
- (optional) In the package folder run
node test
to verify that Consul is accessible - Include it into your app!
Example
const consulkv = consult = consultconsult; // Pre-fill local cache with current values at server startconsulkv; // As a featureToggler, use it as follows:if === "on" // Code of the feature turned on // ...