0.2.0 • Published 9 years ago

@bytein/config-loader v0.2.0

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
9 years ago

config-loader

config-loader is a simple configuration loader that loads configuration from JSON file and passes it to a callback function.

Installation

npm install @bytein/config-loader

Use

Create a config/default.json inside your application folder.

var configLoader = require('config-loader');

configLoader.load(function(err, config) {
    if(err) throw err;
    // console.log(config);
}