Skip to content

tellnes/config-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published