@npmcorp/etcd-result-objectify

1.0.0 • Public • Published

etcd-result-objectify

Objectify the results of a recursive etcd query.

Build Status

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))
})

Readme

Keywords

Package Sidebar

Install

npm i @npmcorp/etcd-result-objectify

Weekly Downloads

554

Version

1.0.0

License

MIT

Unpacked Size

17.2 kB

Total Files

11

Last publish

Collaborators

  • shmam
  • dipeshpatel01
  • kartykp
  • jithinpg
  • reggi
  • karenjli
  • tayvongh
  • navin22
  • lukekarrys-gh
  • dhei
  • tiagonbotelho
  • hashtagchris
  • nishantms
  • feelepxyz.github
  • monishcm
  • jumoel
  • trevrosen
  • fritzy
  • npm
  • npmci
  • saquibkhan
  • gar
  • mylesborins