lib/module.js
function Module(id, parent) {
  this.id = id
  this.parent = parent;
  if (parent && parent.children) {
    parent.children.push(this);
  }
  this.children = [];
  
  this.filename = null;
  this.format = undefined;
  this.loaded = false;
}
function Module(id, parent) {
  this.id = id
  this.parent = parent;
  if (parent && parent.children) {
    parent.children.push(this);
  }
  this.children = [];
  
  this.filename = null;
  this.format = undefined;
  this.loaded = false;
}
function Module ( id , parent ) { this . id = id this . parent = parent ; if ( parent && parent . children ) { parent . children . push ( this ) ; } this . children = [ ] ; this . filename = null ; this . format = undefined ; this . loaded = false ; }
`Module` constructor.

Constructs a new module with the given `id` and `parent`.  If `parent` is
not null, the created module will be added as a child of `parent`.

@param {String} id
@param {Module} parent
@api public
Module constructor .