Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.supernote.com/llms.txt

Use this file to discover all available pages before exploring further.

getPluginDirPath(): Promise<string | null | undefined>;
Returns
  • Promise<string | null | undefined>: plugin installation directory path

Example

import { PluginManager } from 'sn-plugin-lib';

/**
 * Example: get plugin directory path.
 */
export async function exampleGetPluginDirPath() {
 const dir = await PluginManager.getPluginDirPath();
 return dir;
}