Skip to content

Libs Api

Methods for getting info on libraries

get list(): string[]

A list of all the libraries installed

string[]

get<T>(name): Libraries[T]

Gets the exported values of a library

Type Parameter
T extends string | number
Parameter Type
name T

Libraries[T]


getHeaders(name): ScriptHeaders | null

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

Parameter Type
name string

ScriptHeaders | null


isEnabled(name): boolean

Gets whether or not a plugin is installed and enabled

Parameter Type
name string

boolean


require<T>(name, downloadUrl?): Promise<Libraries[T]>

Gets a library by name, prompting the user to enable/download it if necessary. Returns a promise with its exports.

Type Parameter
T extends string | number
Parameter Type
name T
downloadUrl? string

Promise<Libraries[T]>

api.libs.require("Communication", "https://raw.githubusercontent.com/Gimloader/builds/main/libraries/Communication.js");