Needful Program Management

    etcd-result-objectify

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

    Install

    npm i etcd-result-objectify

    DownloadsWeekly Downloads

    42

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.66 kB

    Total Files

    6

    Last publish

    Collaborators

    • mmalecki