MotorXP-PM Scripting API
    Preparing search index...

    Function require

    • require() loads an ES module. Unlike include(), it returns an object containing the data exported by the loaded file.

      Parameters

      • path: string

        Module path, absolute or relative to the directory of the requiring module (includeBasePath at the top level).

      Returns Object

      The default export if the module has one, otherwise the module namespace object. If the module fails to load, an error is printed to the console and undefined is returned.