Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    rx-configpublic

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

    Keywords

    none

    install

    npm i rx-config

    Downloadsweekly downloads

    7

    version

    0.1.0

    license

    none

    last publish

    collaborators

    • avatar