RequiredModule

RequiredModule

Module, loaded vis require() call. In particular module.exports is the same as the exports object. module isn't actually a global but rather local to each module. See http://nodejs.org/api/modules.html for more information.

Constructor

new RequiredModule()

Members

id: String

The identifier for the module. Typically this is the fully resolved filename.

filename: String

The fully resolved filename to the module.

loaded: Boolean

Whether or not the module is done loading, or is in the process of loading.

parent: Object

The module that required this one.

children: Array

The module objects required by this one.

Methods

require(id)Object

Provides a way to load a module as if require() was called from the original module.
Arguments:
  1. id (String)  required module name