New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reconf

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reconf

Recursive configuration file management with defaults and overrides for nconf.

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

About

Reconf is used in order to find a configuration file in a similar manner to how npm finds a package.json. It will recurse up the directory tree until it finds a matching file. Also, it will try the user's home directory should that not succeed.

Since command line arguments and other inputs may be important to override configuration and defaults should be provided for many values, reconf will take care of these for you. You may supply arguments to nconf to set up overriding values and defaults. If you do not supply arguments defaults will be empty and overrides will correspond to optimist's argv.

Usage

var overrides = require('optimist').argv;
var defaults = {'angry':false};
var config = require('reconf')('.myconf',overrides,defaults)
config.load()
//
// Show the current value of the 'angry' setting
//
console.log(config.get('angry'))

FAQs

Package last updated on 20 Jun 2011

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc