Skip to content

Artesonraju/jsonconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published