code: function load(file) {
      if (path.extname(file) === ".yaml" || path.extname(file) === ".yml") {
        return yaml.safeLoad(fs.readFileSync(file));
  
      } else if (path.extname(file) === ".json") {
        var r = JSON.parse(fs.readFileSync(file));
        return r;
  
      } else if (path.extname(file) === ".js") {
        var obj = require(file);
        
        if (typeof(obj) !== "object") {
          throw {error: "needs to export object, not "+typeof(obj), file: file};
  
        } else {
          return clone(obj);
        }
      } else {
        throw {error: path+" has invalid extension: "+path.extname(file)};
      }
    }
docs: Does the actual file parsing