> ## 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

> 获取插件名称。

```ts theme={null}
getPluginName(): Promise<string | null | undefined>;
```

**返回**

* `Promise<string | null | undefined>`：插件名称

## 示例

```ts wrap theme={null}
import { PluginManager } from 'sn-plugin-lib';

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