Skip to content

Plugins.readManifest method

Plugins › readManifest

Unofficial

Read and validate the manifest.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:

ParameterTypeDescription
dirstringThe plugin folder path.

Returns: Promise<null | PluginManifest> — A promise that resolves to the manifest, or null when it is missing, unreadable or invalid.