Skip to content

Plugins Api

GL.plugins

Accessors

list

Get Signature

get list(): string[]

A list of all the plugins installed

Returns

string[]

Methods

get()

get<T>(name): T

Gets the exported values of a plugin, if it has been enabled

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
namestring

Returns

T


getHeaders()

getHeaders(name): object

Gets the headers of a plugin, such as version, author, and description

Parameters

ParameterType
namestring

Returns

object

author

author: string

description

description: string

downloadUrl

downloadUrl: string

hasSettings

hasSettings: string

isLibrary

isLibrary: string

name

name: string

needsLib

needsLib: string[]

optionalLib

optionalLib: string[]

reloadRequired

reloadRequired: string

version

version: string

webpage

webpage: string


isEnabled()

isEnabled(name): boolean

Whether a plugin exists and is enabled

Parameters

ParameterType
namestring

Returns

boolean