toggleInstallCommunityPlugin
Installs or uninstalls a community plugin to match the desired state. Delegates to installCommunityPlugin / uninstallCommunityPlugin, so it is idempotent.
Import:
import { toggleInstallCommunityPlugin } from '@mnaoumov/obsidian-lib/community-plugins';Signature:
function toggleInstallCommunityPlugin(params: ToggleInstallCommunityPluginParams): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
ToggleInstallCommunityPluginParams | The ToggleInstallCommunityPluginParams. |
Returns: Promise<void> — A Promise that resolves once the plugin matches the desired installed state.
Links to this page: