
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
[r-config](https://github.com/rysenko/r-config) is a configuration loader for node.js projects.
r-config is a configuration loader for node.js projects.
$ npm install r-config
var config = require('r-config');
Module will load JSON configurations from config folder in your project.
It will load configurations in the following order.
config/config.jsonconfig/config.<environment>.jsonEnvironment defaults to development if not specified. Default sections specified in config.json will be overriden
by sections specified it your environment-specific config.
config.json:
{
"aws":{
"key":"key1",
"secret":"secret1"
},
"analytics":{
"key":"value"
}
}
config.development.json:
{
"aws":{
"key":"key2",
"secret":"secret2"
}
}
code.js
var config = require('r-config');
console.log(config);
This will be your merged config:
{
"aws":{
"key":"key2",
"secret":"secret2"
},
"analytics":{
"key":"value"
}
}
FAQs
[r-config](https://github.com/rysenko/r-config) is a configuration loader for node.js projects.
We found that r-config 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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.