node package manager


Load config.cson to process.config

npm install cson-config

require('cson-config').load() or require('cson-config').load('/path/to/config.cson')

all variables are exported to process.config

if .env is present content will be auto loaded to proces.env before loading config NAME=server1 PORT=5566

see test/

csonConfig = require 'cson-config'
mongoq = require 'mongoq'

csonConfig.use /^mongodb:/, (url) ->
    return mongoq url

All values in configuration matching /^mongodb:/ will be replaced by instance of mongoq