index.js
function Fossa(options) {
  this.fuse();

  //
  // Store the options.
  //
  this.writable('queue', []);
  this.writable('plugins', {});
  this.writable('connecting', false);
  this.readable('options', configure(options || {}, this));

  //
  // Prepare a default model and collection sprinkled with MongoDB proxy methods.
  //
  this.readable('Model', model(this));
  this.readable('Collection', collection(this));

  //
  // Provide reference to the orginal mongo module so it can be used easily.
  //
  this.readable('mongo', mongo);

  //
  // Prepare connection.
  //
  this.init(
    this.options('hostname', 'localhost'),
    this.options('port', 27017),
    this.options
  );
}
function Fossa(options) {
  this.fuse();

  //
  // Store the options.
  //
  this.writable('queue', []);
  this.writable('plugins', {});
  this.writable('connecting', false);
  this.readable('options', configure(options || {}, this));

  //
  // Prepare a default model and collection sprinkled with MongoDB proxy methods.
  //
  this.readable('Model', model(this));
  this.readable('Collection', collection(this));

  //
  // Provide reference to the orginal mongo module so it can be used easily.
  //
  this.readable('mongo', mongo);

  //
  // Prepare connection.
  //
  this.init(
    this.options('hostname', 'localhost'),
    this.options('port', 27017),
    this.options
  );
}
function Fossa ( options ) { this . fuse ( ) ; // // Store the options. // this . writable ( 'queue' , [ ] ) ; this . writable ( 'plugins' , { } ) ; this . writable ( 'connecting' , false ) ; this . readable ( 'options' , configure ( options || { } , this ) ) ; // // Prepare a default model and collection sprinkled with MongoDB proxy methods. // this . readable ( 'Model' , model ( this ) ) ; this . readable ( 'Collection' , collection ( this ) ) ; // // Provide reference to the orginal mongo module so it can be used easily. // this . readable ( 'mongo' , mongo ) ; // // Prepare connection. // this . init ( this . options ( 'hostname' , 'localhost' ) , this . options ( 'port' , 27017 ) , this . options ) ; }
Constructor of Fossa.

@Constructor
@param {Object} options
@api public
Constructor of Fossa .