enableCommunityPlugin
Enables a community plugin (persisting the change) if it is not already enabled. Idempotent — a no-op when the plugin is already enabled.
Import:
import { enableCommunityPlugin } from '@mnaoumov/obsidian-lib/community-plugins';Signature:
function enableCommunityPlugin(params: EnableCommunityPluginParams): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
EnableCommunityPluginParams | The EnableCommunityPluginParams. |
Returns: Promise<void> — A Promise that resolves once the plugin is enabled.
Links to this page: