eCR Viewer
    Preparing search index...

    Interface Require

    interface Require {
        cache: Dict<Module>;
        extensions: RequireExtensions;
        main: undefined | Module;
        resolve: RequireResolve;
        (id: string): any;
    }
    • Used to import modules, JSON, and local files.

      Parameters

      • id: string

      Returns any

      v0.1.13

    Index

    Properties

    cache: Dict<Module>

    Modules are cached in this object when they are required. By deleting a key value from this object, the next require will reload the module. This does not apply to native addons, for which reloading will result in an error.

    v0.3.0

    extensions: RequireExtensions

    Instruct require on how to handle certain file extensions.

    v0.3.0

    main: undefined | Module

    The Module object representing the entry script loaded when the Node.js process launched, or undefined if the entry point of the program is not a CommonJS module.

    v0.1.17

    v0.3.0