1.0.6 • Published 4 years ago

iotdb-configuration v1.0.6

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
4 years ago

iotdb-configuration

POP configuration files

use

Note the special way this needs to be required. This allows for multiple configurations to be working within the same system

const _ = require("iotdb-helpers")
const cfg = require("iotdb-configuration")("cfg")

Then it's the usual:

_.promise.make({
    configurationd: {
        path: ".subfolder/cfg.json",
    },
})
    .then(cfg.initialize)
    .then(cfg.load)
    .then(cfg.set.p("a", 1))
    .then(cfg.get.p("a:variable"))
    .then(_.promise.make(sd => {
        assert.ok(sd.variable, 1)
    })
    .then(cfg.save)

todo

  • autosave?
  • yaml?
1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago