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:
| Parameter | Type | Description |
|---|---|---|
| id | string | {@link obsidian#Plugin} ID. |
| dir | string | The 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.