EU Parliament Monitor — API Documentation - v0.8.6
    Preparing search index...
    • Write an analysis markdown file with YAML frontmatter.

      Creates parent directories as needed. The file is written atomically via temp-file-then-rename (see atomicWrite) to avoid partial writes on crash or interruption. Any existing file at the path will be overwritten.

      Parameters

      • filePath: string

        Absolute or relative path of the markdown file to write

      • frontmatter: AnalysisFrontmatter

        Structured frontmatter metadata

      • content: string

        Markdown body content (without frontmatter)

      Returns void

      writeAnalysisFile('./analysis-output/2026-03-26/classification/significance-assessment.md', fm, body);