plugins - ZeMA-gGmbH/NoPE-JS GitHub Wiki
Namespace: plugins
Variables
availablePlugins
Const availablePlugins: Object
Type declaration
| Name | Type |
|---|---|
ackMessages |
Plugin |
hello |
Plugin |
rpcWithCallbacks |
Plugin |
Functions
allPlugins
allPlugins(): string[]
Helper to list all Plugins
Returns
string[]
List of recognized Plugins
installPlugins
installPlugins(lib, plugins, log?): void
Helper function to install Plugins.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
lib |
string | NodeModule |
undefined |
The Library to modify. |
plugins |
string | Plugin | (string | Plugin)[] |
undefined |
The Plugins install. This can be the registered names, pathes in the library or the plugin itself. |
log |
boolean |
true |
Flag to control the log information. |
Returns
void
plugin
plugin(base, extend, name?): Plugin
Parameters
| Name | Type | Default value |
|---|---|---|
base |
string | string[] |
undefined |
extend |
ExtendFunction |
undefined |
name |
string |
"" |
Returns
Plugin