Configuration library for Ringojs
- supports loading configs from json, modules and java properties files
- TBD: system arguments, environment
- merge multiple config sources
- plenty of unit tests
var config = require('gestalt').load('/tmp/config.json');
config.get('foo:bar');
// manually set values
config.set('database', {host: '127.0.0.1', port: 5984});
config.get('database:host');
// you can merge in several config files
config.merge('/tmp/config.properties')
// optionally the files can be merged into the
// config hierarchy at a certain point
config.merge('db', '/tmp/db.json');
inspired by https://github.com/flatiron/nconf and https://github.com/typesafehub/config