AddonLoader

AddonLoader

Handle addons

Constructor

new AddonLoader()

Source:

Methods

getAddon(dirName) → {Addon|undefined}

Description:
  • Get instance of addon by directory name

Source:
Parameters:
Name Type Description
dirName String | Addon

Directory of the addon

Returns:
Type
Addon | undefined

getAddonByName(name) → {Addon|undefined}

Description:
  • Get addon by the name on package.json
    This function is case insensitive

Source:
Since:
  • 5.8.17
Parameters:
Name Type Description
name String

Addon's name

Returns:
  • Addon object
Type
Addon | undefined

isActive(addon) → {Boolean}

Description:
  • Check if an addon is active or not

Source:
Since:
  • 5.8.17
Parameters:
Name Type Description
addon String | Addon
Returns:
  • True if addon is exist and active
Type
Boolean

(async) waitFor(path) → {Promise.<Addon>}

Description:
  • Wait until certain addon is loaded

Source:
Parameters:
Name Type Description
path String

Folder name of the addon

Returns:
Type
Promise.<Addon>