src/config.js
function loadConfigCore(configItem) {
  if (typeof configItem === "string") {
    configItem = fs.readFileSync(configItem, "utf8");
  } else if (typeof configItem === "object") {
    // do nothing
  } else {
    throw new Error("Unexpected config item type.");
  }

  return configItem;
}
function loadConfigCore(configItem) {
  if (typeof configItem === "string") {
    configItem = fs.readFileSync(configItem, "utf8");
  } else if (typeof configItem === "object") {
    // do nothing
  } else {
    throw new Error("Unexpected config item type.");
  }

  return configItem;
}
function loadConfigCore ( configItem ) { if ( typeof configItem === "string" ) { configItem = fs . readFileSync ( configItem , "utf8" ) ; } else if ( typeof configItem === "object" ) { // do nothing } else { throw new Error ( "Unexpected config item type." ) ; } return configItem ; }
Load config core function, from object or local config file
@param {Object|String} configItem - Config object or file path
@returns {Object} Kotori config
@private
Load config core function from object or local config file