text: var path = require('path');
  var matchAmd = require('./match/amd');
  var matchCjs = require('./match/cjs');
  var matchEs6 = require('./match/es6');
  var matchers = {
    amd: [matchAmd],
    cjs: [matchCjs],
    es6: [matchEs6],
    es2015: [matchEs6],
    js: [matchAmd, matchCjs, matchEs6]
  };
  
  module.exports = function (vinyl, opts) {
    opts = opts || {};
    var ext = path.extname(vinyl.path).replace('.', '');
    var use = opts.matchers || matchers[ext];
  
    if (use) {
      return use.reduce(function (arr, matcher) {
        return arr.concat(matcher(vinyl));
      }, []);
    }
  
    return [];
  };
  