index.js
function (params) {
    var res = [];
    if (typeof (params) === 'undefined') params = { displayEverything: false };
    if (!this.registeredModels || Object.keys(this.registeredModels).length === 0) {
      res.push('There is no registered models');
    } else {
      res.push('List of registered models');
      for (var modelName in this.registeredModels) {
        res.push('  - ' + modelName);
        if (params.displayEverything) {
          for (var key in this.registeredModels[modelName]) {
            res.push('      ' + key + ' : ' + this.registeredModels[modelName][key].type);
          }
        }
      }
    }

    return res.join('\n');
  }
function (params) {
    var res = [];
    if (typeof (params) === 'undefined') params = { displayEverything: false };
    if (!this.registeredModels || Object.keys(this.registeredModels).length === 0) {
      res.push('There is no registered models');
    } else {
      res.push('List of registered models');
      for (var modelName in this.registeredModels) {
        res.push('  - ' + modelName);
        if (params.displayEverything) {
          for (var key in this.registeredModels[modelName]) {
            res.push('      ' + key + ' : ' + this.registeredModels[modelName][key].type);
          }
        }
      }
    }

    return res.join('\n');
  }
function ( params ) { var res = [ ] ; if ( typeof ( params ) === 'undefined' ) params = { displayEverything : false } ; if ( ! this . registeredModels || Object . keys ( this . registeredModels ) . length === 0 ) { res . push ( 'There is no registered models' ) ; } else { res . push ( 'List of registered models' ) ; for ( var modelName in this . registeredModels ) { res . push ( '  - ' + modelName ) ; if ( params . displayEverything ) { for ( var key in this . registeredModels [ modelName ] ) { res . push ( '      ' + key + ' : ' + this . registeredModels [ modelName ] [ key ] . type ) ; } } } } return res . join ( '\n' ) ; }
Show information of registered models. All registered models are stored in .registeredModels If params.displayEverything is true, module will show additional info
Show information of registered models . All registered models are stored in . registeredModels If params . displayEverything is true module will show additional info