跳转到主要内容

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.

getPluginName(): Promise<string | null | undefined>;
返回
  • Promise<string | null | undefined>:插件名称

示例

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

/**
 * 获取插件名称的示例。
 */
export async function exampleGetPluginName() {
  const name = await PluginManager.getPluginName();
  return name;
}