2.2.0 • Published 10 years ago

qconf v2.2.0

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

qconf

Painless configuration with defaults file, environment variables, arguments, function parameters.

defaults file < process.env < command line arguments < function call override

Getting started

Create your config object:

var qconf = require('../qconf.js'),
  config = qconf(); // 99% of the time, this is all you need!

Extra credit

Create a JSON file: ./config/config.json

{
  "default_setting": true,
  "envOverride": false,
  "arg_override": false,
  "param_override": false
}

Maybe source some environment variables:

export env_override=true

Try a command-line option:

node myfile.js --arg-option true

Result

Painless configuration for your apps!

Motivation

Got sick of the complexity of nconf. Don't try to be everything to everybody. Just get a simple job done with simple code.

2.2.0

10 years ago

2.1.1

10 years ago

2.0.0

10 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago