code: function loadYamlConfig (paths) {
    paths = paths || []
  
    if (!Array.isArray(paths)) {
      paths = new Array(paths)
    }
  
    // console.log('Paths:', paths)
  
    if (paths.length === 0) {
      if (checkDefaultConfig()) {
        paths.push('config.yml')
      } else {
        return config
      }
    }
  
    let files = []
    for (let i = 0; i < paths.length; i++) {
      if (paths[i].endsWith('.yml')) {
        if (fs.existsSync(paths[i])) {
          let keyName = (/([ \w-]+?(?=\.))/.exec(paths[i])[1])
          files[keyName] = path.join(paths[i])
        }
      } else {
        let dirFiles = fs.readdirSync(path.join(paths[i]))
        let dirPath = path.join(paths[i])
        for (let i = 0; i < dirFiles.length; i++) {
          if (dirFiles[i].endsWith('.yml')) {
            let keyName = dirFiles[i].substring(0, dirFiles[i].length - '.yml'.length)
            files[keyName] = path.join(dirPath, dirFiles[i])
          }
        }
      }
    }
    // console.log('Files:', files)
    if (files === []) {
      return
    }
    let rootConfig = {}
    for (var keyName in files) {
      if (files.hasOwnProperty(keyName)) {
        if (keyName === options.root) {
          rootConfig = loadYamlFile(files[keyName])
        } else {
          config[keyName] = loadYamlFile(files[keyName])
        }
      }
    }
    config = Object.assign(rootConfig, config)
    return config
  }
docs: console.log('YAML test:', loadYamlFile('test.yml')) 
  Load Yaml files as Config object
  
  @param {any} paths
  @returns {obj}