comfy
Configure your applications comfortably, using environment variables
and a simple DSL.
var comfy = require("comfy");
var config = comfy.build(function(c) {
c.required("important_api_key");
c.optional("sky_color", "blue");
c.required("important_api_key", { alias: "some_service_key" });
c.property("synergy", {
transform: function (value) {
return "Dynamically procrastinate B2C users " + value;
}
});
});
console.log(config.skyColor);
console.log(config.sky_color);
console.log(config.someServiceKey);
Install:
npm install --save comfy
Author
comfy
was developed by Filipe Dobreira, on @gabrielecirulli's fairly comfortable couch. Contributions (to the code, not the couch thing) are welcome!