Skip to content

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 'obsidian-dev-utils/obsidian/community-plugins';

Signature:

function enableCommunityPlugin(params: EnableCommunityPluginParams): Promise<void>

Parameters:

ParameterTypeDescription
paramsEnableCommunityPluginParamsThe EnableCommunityPluginParams.

Returns: Promise<void> — A Promise that resolves once the plugin is enabled.


Links to this page: