etcd-result-objectify
1.0.1 • Public • Published etcd-result-objectify
Objectify the results of a recursive etcd query.
For example, a structure like:
- foo
- bar: baz
- oof
- baz: rab
changes into:
{
foo: {
bar: "baz",
oof: {
baz: "rab"
}
}
}
Installation
npm install etcd-result-objectify
Usage
var Etcd = require('node-etcd')
var etcdResultObjectify = require('etcd-result-objectify')
var etcd = new Etcd()
etcd.get('foo', { recursive: true }, function(err, result) {
if (err) throw err
console.dir(etcdResultObjectify(result))
})
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.1
338
Version History
Package Sidebar
Install
npm i etcd-result-objectify
Weekly Downloads