index.js
function(name, options) {
        if (this.generators.hasOwnProperty(name)) {
          return this.generators[name];
        }

        if (~name.indexOf('.')) {
          return this.getSubGenerator.apply(this, arguments);
        }

        var opts = utils.extend({}, this.options, options);
        if (typeof opts.lookup === 'function') {
          var app = this.lookupGenerator(name, opts, opts.lookup);
          if (app) {
            return app;
          }
        }
        return this.matchGenerator(name);
      }
function(name, options) {
        if (this.generators.hasOwnProperty(name)) {
          return this.generators[name];
        }

        if (~name.indexOf('.')) {
          return this.getSubGenerator.apply(this, arguments);
        }

        var opts = utils.extend({}, this.options, options);
        if (typeof opts.lookup === 'function') {
          var app = this.lookupGenerator(name, opts, opts.lookup);
          if (app) {
            return app;
          }
        }
        return this.matchGenerator(name);
      }
function ( name , options ) { if ( this . generators . hasOwnProperty ( name ) ) { return this . generators [ name ] ; } if ( ~ name . indexOf ( '.' ) ) { return this . getSubGenerator . apply ( this , arguments ) ; } var opts = utils . extend ( { } , this . options , options ) ; if ( typeof opts . lookup === 'function' ) { var app = this . lookupGenerator ( name , opts , opts . lookup ) ; if ( app ) { return app ; } } return this . matchGenerator ( name ) ; }
Private method used by `.findGenerator`.
Private method used by . findGenerator .