function prepareConfOpts(conf, opts) {
  const retval = {
    maskList: conf.MASK_LIST,
    maxValueLength: conf.MAX_LEN,
  };

  if (opts && opts.MAX_LEN) retval.maxValueLength = opts.MAX_LEN;
  if (retval.maxValueLength < 4) retval.maxValueLength = 512;
  if (opts && opts.MASK_LIST) retval.maskList = opts.MASK_LIST;
  return retval;
} // prepareConfOpts
/**
 * Set up the config options, starting from the values from config OR using
 * override values from opts arg.
 *
 * @param {Object} conf - options from config.logEnvVars
 * @param {Object} opts - options object containing optional MASK_LIST and
 *  MAX_LEN attributes
 * @returns {Object} config options
 */
Set up the config options, starting from the values from config OR using
override values from opts arg.

@param {Object} conf - options from config.logEnvVars
@param {Object} opts - options object containing optional MASK_LIST and
MAX_LEN attributes
@returns {Object} config options
Set up the config options starting from the values from config OR using override values from opts arg . @param { Object } conf - options from config . logEnvVars @param { Object } opts - options object containing optional MASK_LIST and MAX_LEN attributes @returns { Object } config options
function prepareConfOpts(conf, opts) {
  const retval = {
    maskList: conf.MASK_LIST,
    maxValueLength: conf.MAX_LEN,
  };
  if (opts && opts.MAX_LEN) retval.maxValueLength = opts.MAX_LEN;
  if (retval.maxValueLength < 4) retval.maxValueLength = 512;
  if (opts && opts.MASK_LIST) retval.maskList = opts.MASK_LIST;
  return retval;
} 
function prepareConfOpts ( conf , opts ) { const retval = { maskList : conf . MASK_LIST , maxValueLength : conf . MAX_LEN , } ; if ( opts && opts . MAX_LEN ) retval . maxValueLength = opts . MAX_LEN ; if ( retval . maxValueLength < 4 ) retval . maxValueLength = 512 ; if ( opts && opts . MASK_LIST ) retval . maskList = opts . MASK_LIST ; return retval ; }
Set up the config options, starting from the values from config OR using
 override values from opts arg.
Set up the config options starting from the values from config OR using override values from opts arg .
// prepareConfOpts