lib/index.js
function loadConfig(filename) {
  //Does our consumer have a valid .mitto?
  var mittoObject = _loadMitto();
  //Is it in a valid format?
  mittoObject = _validateMitto(mittoObject);

  //Does our consumer's consumer have a config of 'filename'?
  var configObject = _findFile(filename);
  //Is it in a valid format as prescribed by our consumer's .mitto?
  return _validateConfig(configObject, mittoObject);
}
function loadConfig(filename) {
  //Does our consumer have a valid .mitto?
  var mittoObject = _loadMitto();
  //Is it in a valid format?
  mittoObject = _validateMitto(mittoObject);

  //Does our consumer's consumer have a config of 'filename'?
  var configObject = _findFile(filename);
  //Is it in a valid format as prescribed by our consumer's .mitto?
  return _validateConfig(configObject, mittoObject);
}
function loadConfig ( filename ) { //Does our consumer have a valid .mitto? var mittoObject = _loadMitto ( ) ; //Is it in a valid format? mittoObject = _validateMitto ( mittoObject ) ; //Does our consumer's consumer have a config of 'filename'? var configObject = _findFile ( filename ) ; //Is it in a valid format as prescribed by our consumer's .mitto? return _validateConfig ( configObject , mittoObject ) ; }
Find JSON configuration given a filename
Applies .mitto constraints if your package has a .mitto package present
@return {json converted to Object}
Find JSON configuration given a filename Applies . mitto constraints if your package has a . mitto package present