This API provides access to read and write modules. Modules can be used by plugins.
Gets a list of all module names.
Property | Type | Description |
---|---|---|
moduleNames | Array<string> |
List of available modules by name. |
Gets a module.
Property | Type | Description |
---|---|---|
module | The module. |
Property | Type | Description |
---|---|---|
name | string |
The unique name of the module. |
content | string |
The module content (e.g. code). |
Create a new module.
Property | Type | Description |
---|---|---|
module | The module to create. |
Property | Type | Description |
---|---|---|
message | string |
Error message when request contains invalid data. |
Clears the module cache. A module will be loaded only once when it is used. Clear the cache to load it again on the next require
statement of an (plugin)[/plugin].
Updates an existing module.
Property | Type | Description |
---|---|---|
module | The module object. |
Deletes an existing module.