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

> Get the plugin installation directory path.

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

**Returns**

* `Promise<string | null | undefined>`: plugin installation directory path

## Example

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

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