How to use the mime-types.glob function in mime-types

To help you get started, we’ve selected a few mime-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github APIs-guru / google-discovery-to-swagger / GoogleDiscovery2Swagger.js View on Github external
_.each(list, function (pattern) {
    _.each(mime.glob(pattern), function (name) {
      //FIXME: workaround for https://github.com/swagger-api/swagger-spec/issues/268
      if (name.indexOf('_') >= 0)
        return;
      result.push(name);
    });
  });
  return result;