code: function load(filename, envs) {
      const config = {};
      if (!path.isAbsolute(filename)) {
          filename = path.resolve(process.cwd(), filename);
      }
      if (fs.existsSync(filename)) {
          const stat = fs.lstatSync(filename);
          if (stat.isFile()) {
              if (/.json$/.test(filename)) {
                  const content = fs.readFileSync(filename, 'utf8');
                  Object.assign(config, fn.resolve(JSON.parse(content), envs));
              }
          } else if (stat.isDirectory()) {
              const files = fs
                  .readdirSync(filename)
                  .filter(
                      f =>
                          fs.lstatSync(path.resolve(filename, f)).isFile() &&
                          /.json$/.test(f)
                  );
              files.forEach(file => {
                  const content = fs.readFileSync(
                      path.resolve(filename, file),
                      'utf8'
                  );
                  const basename = path.basename(file, path.extname(file));
                  Object.assign(config, {
                      [basename]: fn.resolve(JSON.parse(content), envs)
                  });
              });
          }
      }
  
      return config;
  }
docs: Load config
  
  @param {string} filename
  @param {{[x: string]: string}} [envs]
  @returns {any}