config-dir

config-dir

npm install config-dir
9 downloads in the last month

config-dir

config-dir

Dependency Status

Usage

app.js:

var config = require('config-dir')('example')
console.log(config.get())

/home/me/configs/example.ini

[foo]
bar=Hello

/home/me/configs/global.ini

[foo]
baz=World

run:

CONFIG_DIR=/home/me/configs/ node app.js

output:

{"foo":{"bar":"Hello","baz":"World"}}

Install

$ npm install config-dir

License

MIT

npm loves you