Skip to content

Plugins.isInstalled method

Plugins › isInstalled

Unofficial

Check whether a plugin is installed: its manifest is loaded, or the given folder holds a manifest with its ID.

Signature:

isInstalled(id: string, dir: string): Promise<boolean>

Parameters:

ParameterTypeDescription
idstring{@link obsidian#Plugin} ID.
dirstringThe plugin folder to check when no manifest is loaded for the ID.

Returns: Promise<boolean> — A promise that resolves to whether the plugin is installed.