Distributed key/value store abstraction library for Node.js
$ npm install kvx --save
import kvx from 'kvx';
const kv = kvx('consul');
async function test() {
const key = 'hello';
const value = 'world';
await kv.put(key, value);
const pair = await kv.get(key);
const pairs = await kv.list(key);
const watcher = kv.watch(key);
watcher.on('change', (err, data) => {
console.log(data);
watcher.end();
});
}
kvx is available under the terms of the MIT License.