index.js
function convertConfig(jsonConfig) {
  var bunyanConfig = extend({}, jsonConfig);

  if (Array.isArray(bunyanConfig.streams)) {
    bunyanConfig.streams = bunyanConfig.streams.map(convertStream);
  }

  if (bunyanConfig.serializers) {
    bunyanConfig.serializers = convertSerializers(bunyanConfig.serializers);
  }

  return bunyanConfig;
}
function convertConfig(jsonConfig) {
  var bunyanConfig = extend({}, jsonConfig);

  if (Array.isArray(bunyanConfig.streams)) {
    bunyanConfig.streams = bunyanConfig.streams.map(convertStream);
  }

  if (bunyanConfig.serializers) {
    bunyanConfig.serializers = convertSerializers(bunyanConfig.serializers);
  }

  return bunyanConfig;
}
function convertConfig ( jsonConfig ) { var bunyanConfig = extend ( { } , jsonConfig ) ; if ( Array . isArray ( bunyanConfig . streams ) ) { bunyanConfig . streams = bunyanConfig . streams . map ( convertStream ) ; } if ( bunyanConfig . serializers ) { bunyanConfig . serializers = convertSerializers ( bunyanConfig . serializers ) ; } return bunyanConfig ; }
Converts jsonConfig into proper bunyan config. The original object is not modified.

@param {Object} jsonConfig
@returns {Object} bunyanConfig
Converts jsonConfig into proper bunyan config . The original object is not modified .