eCR Viewer
    Preparing search index...

    Interface Module

    interface Module {
        children: Module[];
        exports: any;
        filename: string;
        id: string;
        isPreloading: boolean;
        loaded: boolean;
        parent: undefined | null | Module;
        path: string;
        paths: string[];
        require(id: string): any;
    }
    Index

    Properties

    children: Module[]

    The module objects required for the first time by this one.

    v0.1.16

    exports: any

    The module.exports object is created by the Module system. Sometimes this is not acceptable; many want their module to be an instance of some class. To do this, assign the desired export object to module.exports.

    v0.1.16

    filename: string

    The fully resolved filename of the module.

    v0.1.16

    id: string

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

    v0.1.16

    isPreloading: boolean

    true if the module is running during the Node.js preload phase.

    v15.4.0, v14.17.0

    loaded: boolean

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

    v0.1.16

    parent: undefined | null | Module

    The module that first required this one, or null if the current module is the entry point of the current process, or undefined if the module was loaded by something that is not a CommonJS module (e.g. REPL or import).

    v0.1.16

    Please use require.main and module.children instead.

    path: string

    The directory name of the module. This is usually the same as the path.dirname() of the module.id.

    v11.14.0

    paths: string[]

    The search paths for the module.

    v0.4.0

    Methods

    • The module.require() method provides a way to load a module as if require() was called from the original module.

      Parameters

      • id: string

      Returns any

      v0.5.1