Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
comfy
Advanced tools
Readme
Configure your applications comfortably, using environment variables and a simple DSL.
var comfy = require("comfy");
// Define your configuration:
var config = comfy.build(function(c) {
// Required properties:
c.required("important_api_key");
// Optional properties with defaults:
c.optional("sky_color", "blue");
// Aliased property names:
c.required("important_api_key", { alias: "some_service_key" });
// More complicated syntax if you're running low on your
// LOC targets for this week:
c.property("synergy", {
transform: function (value) {
return "Dynamically procrastinate B2C users " + value;
}
});
});
// Use it:
// process.env.SKY_COLOR === "red"
console.log(config.skyColor); // => "red"
// If snake_case is your thing, you can also stick to that:
console.log(config.sky_color); // => "red"
// Name aliases work too:
// process.env.IMPORTANT_API_KEY === "banana"
console.log(config.someServiceKey); // => banana
npm install --save comfy
comfy
was developed by Filipe Dobreira, on @gabrielecirulli's fairly comfortable couch. Contributions (to the code, not the couch thing) are welcome!
FAQs
Configure your applications comfortably
The npm package comfy receives a total of 0 weekly downloads. As such, comfy popularity was classified as not popular.
We found that comfy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.