EU Parliament Monitor — API Documentation - v0.8.59
    Preparing search index...
    • Read an HTML file, apply language patches, and write the result back to the same file (in-place).

      Parameters

      • filePath: string

        Absolute path to the target HTML file.

      • opts: HtmlLangPatchOptions

        Patch parameters.

      • readFileImpl: (p: string, enc: BufferEncoding) => string = fs.readFileSync

        Injectable read function (default: fs.readFileSync).

      • writeFileImpl: (p: string, data: string, enc: BufferEncoding) => void = fs.writeFileSync

        Injectable write function (default: fs.writeFileSync).

      Returns void

      If the file cannot be read or written.