Config.load()

Load a config of config's file...

For example, see tests/test.js (mocha tests/test.js)

Usage

Hover over inputs/exits for more info.

var Config = require('machinepack-config');


// Load a config of config's file...

Config.load({

path: 'test.json',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

path required

A path of json config file

'test.json'

Exits

error

An unexpected error occurred.

success

OK.