lib/express-load.js
function(entity, options) {
  options = options || {};
  options.checkext = options.checkext || checkext;
  options.extlist = options.extlist || extlist;
  options.logFormat = options.logFormat || '%s: %s';
  options.logger = options.logger || console;
  options.ignore = options.ignore || false;
  options.cwd = options.cwd || '';

  this.options = options;
  this.scripts = [];
  if (!(options.extlist instanceof RegExp) && options.extlist instanceof Array){
      this.__log('Converting extension list to regular expression');
      options.extlist = new RegExp('(.*)(' + options.extlist.join('$|').replace(/\./g,'\\.') + ')');
  };
  this.__log('Using regular expression' + options.extlist + 'for extenstion matching');
  this.then(entity);

  return this;
}
function(entity, options) {
  options = options || {};
  options.checkext = options.checkext || checkext;
  options.extlist = options.extlist || extlist;
  options.logFormat = options.logFormat || '%s: %s';
  options.logger = options.logger || console;
  options.ignore = options.ignore || false;
  options.cwd = options.cwd || '';

  this.options = options;
  this.scripts = [];
  if (!(options.extlist instanceof RegExp) && options.extlist instanceof Array){
      this.__log('Converting extension list to regular expression');
      options.extlist = new RegExp('(.*)(' + options.extlist.join('$|').replace(/\./g,'\\.') + ')');
  };
  this.__log('Using regular expression' + options.extlist + 'for extenstion matching');
  this.then(entity);

  return this;
}
function ( entity , options ) { options = options || { } ; options . checkext = options . checkext || checkext ; options . extlist = options . extlist || extlist ; options . logFormat = options . logFormat || '%s: %s' ; options . logger = options . logger || console ; options . ignore = options . ignore || false ; options . cwd = options . cwd || '' ; this . options = options ; this . scripts = [ ] ; if ( ! ( options . extlist instanceof RegExp ) && options . extlist instanceof Array ) { this . __log ( 'Converting extension list to regular expression' ) ; options . extlist = new RegExp ( '(.*)(' + options . extlist . join ( '$|' ) . replace ( / \. / g , '\\.' ) + ')' ) ; } ; this . __log ( 'Using regular expression' + options . extlist + 'for extenstion matching' ) ; this . then ( entity ) ; return this ; }
ExpressLoad constructor.
ExpressLoad constructor .