Stone.js API
    Preparing search index...
    • Parse a config document (JSON or YAML) into an object.

      Parameters

      • raw: string

        The raw document.

      • format: ConfigFileFormat

        The format (yaml imports js-yaml lazily).

      Returns Promise<Record<string, unknown>>

      The parsed object.

      When YAML is requested without js-yaml, or parsing fails.