
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
You may pass in an object, a filename, the string "ARGV", or the string "ENV".
Options passed in later will override attributes with the same name from previous options.
Arguments may be passed in any order.
var confrodo = require("confrodo")
, config
, filename = "myconfig.json"
, defaults = { "foo":"bar", "meow":"mix" };
config = confrodo(defaults, filename, "ARGV", "ENV");
Files may either be a valid json file or a javascript file that returns a json object in modules.exports.
Objects are json objects (not arrays).
"ARGV"
will load any command line options (see optimist.)
"ENV"
will load environment variables.
Confrodo also has an env
property you can use to choose a file:
var confrodo = require("confrodo")
, filename = __dirname + "/" + confrodo.env + ".json"
, config = confrodo(filename);
confrodo.env
will be "local"
, unless the NODE_ENV
environment variable is set, or env
is passed as a command
line argument.
See LICENSE for copyright info.
FAQs
Configuration loader
The npm package confrodo receives a total of 7 weekly downloads. As such, confrodo popularity was classified as not popular.
We found that confrodo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.