Config.multiple()

Get a multiple config with define some key

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

Usage

Hover over inputs/exits for more info.

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


// Get a multiple config with define some key

Config.multiple({

schema: '*',

freeze: false,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

schema required

An array of of path json config (see tests/test.js)

freeze

if true, freeze config

false

Exits

error

An unexpected error occurred.

success

OK.