0.0.2 • Published 10 years ago

jsonconf v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

jsonconf

NPM version Build status Test coverage Dependency Status License

Reloadable configuration from json files

Installation

$ npm install jsonconf

Example

var config = require('jsonconf');
var events = require('events');

var emitter = new events.EventEmitter();

config.load(
  [__dirname + 'config.json',
   __dirname + 'special-config.json'
  ], emitter);

emitter.on('configLoaded', function (){
  console.log(config.get('attribute'));
});

emitter.on('error', function (err){
  console.log(err);
});

License

MIT

0.0.2

10 years ago

0.0.1

10 years ago