rx-config
v0.1.0
Published
An Rx based config
Downloads
36
Readme
Rx Config
An Rx and strategy based json configuraiton loader
Example
var Rx = require("rx"); var rxConfig = require("rx-config"); var staticStrategy = require("rx-config/strategies/static"); var fileStrategy = require("rx-config/strategies/file"); var flatDirectoryStrategy = require("rx-config/strategies/flat-directory"); var recursiveDirectoryStrategy = require("rx-config/strategies/recursive-directory");
rxConfig( fileStrategy("./data/file.json"), flatDirectoryStrategy("./data/lol"), recursiveDirectoryStrategy("./data/lol/beep"), staticStrategy({ "staticness": true }) ).subscribe(function(config) { config.get("title").subscribe(console.log); });