Appearance
Home > resol-vbus-core-toolbox > ScriptEngine > requireFromScript
ScriptEngine.requireFromScript() method
The require
function used inside of scripts.
Signature:
typescript
requireFromScript(id: string, originDirname: string): unknown;
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The module identifier to require. |
originDirname | string | The current script's directory name. |
unknown
The required module's exports.