An Rx based config

npm install rx-config
3 downloads in the last day
12 downloads in the last week
27 downloads in the last month

Rx Config

An Rx and strategy based json configuraiton loader


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

npm loves you