Skip to content

orfon/gestalt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Configuration library for Ringojs

Overview

  • supports loading configs from json, modules and java properties files
    • TBD: system arguments, environment
  • merge multiple config sources
  • plenty of unit tests

Example

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

About

Configuration managment for Ringo

Resources

Stars

Watchers

Forks

Packages

No packages published