Skip to content

getManifestStringValue

Reads the value of a top-level string member of the manifest.

Import:

import { getManifestStringValue } from 'obsidian-dev-utils/script-utils/linters/eslint-rules/manifest-helpers';

Signature:

function getManifestStringValue(manifestObject: JsonObjectNode, key: string): string | null

Parameters:

ParameterTypeDescription
manifestObjectJsonObjectNodeThe manifest’s root object node.
keystringThe key to look for.

Returns: string | null — The member’s value, or null when it is absent or not a string.