eait-kvd
v1.0.0
Published
EAIT KVD client for node.js
Downloads
3
Readme
node-kvd
Client for the KVD protocol in node.js.
var kvd = require('kvd');
var c = new kvd.Client('glucose');
var blob = {foo: "bar", created_by: "test"};
c.create(blob, function(err, key) {
if (err)
return console.log("create failed: " + err);
console.log("wrote key '" + key + "'");
c.get(key, function(err, val) {
if (err)
return console.log("get failed: " + err);
console.log("read key: ", val);
});
});