generate = (dir, filters = [], eventsHandler) => {
  const list = [];
  for (const opts of filters) {
    list.push(generateFilter(Object.assign({}, opts), dir, eventsHandler));
  }
  return list;
}
/*.*`];
  }

  return filter;
};

/**
Generate a list of filters
@param {string} dir
@param {array} [filters=[]]
@param {EventsHandler} eventsHandler