dials

config library for node

npm install dials
1 downloads in the last week
4 downloads in the last month

Example

config.json, or config.js

{
    production: {
        port: 80
    },
    development: {
        port: 8080
    }
}

app.js

var config = require("dials").load(); //load from /usr/local/etc/{{app_name}}/config.json
config.get("port");
npm loves you