dials

config library for node

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");