Plugins.readManifest method
Plugins › readManifest
Unofficial
Read and validate themanifest.json in a plugin folder, without loading it.Sets the manifest's
dir to the folder, and clears an author that is empty or Obsidian.Signature:
readManifest(dir: string): Promise<null | PluginManifest>Parameters:
| Parameter | Type | Description |
|---|---|---|
| dir | string | The plugin folder path. |
Returns: Promise<null | PluginManifest> — A promise that resolves to the manifest, or null when it is missing, unreadable or invalid.