@maschinenlesbar.org/openka-cli
    Preparing search index...

    Function renderRecord

    • Render a record in one of RENDER_FORMATS. Any other format throws OpenKaValidationError: it used to fall through to JSON, so a caller passing user input on got a different format with no error.

      Parameters

      • record: KaRecord
      • format: "json" | "jsonld" | "csv" | "md" | "text"

      Returns string