This version of the module is deprecated: Use moonbitlang/docx2html instead

    bobzhang/docx2html/zip does not have a README file

    ZipArchive

    pub(all) struct ZipArchive {
    entries : Map[String, Bytes]
    } derive(Eq,
    Debug
    )

    In-memory ZIP archive used to read DOCX parts.

    ZipArchive::exists

    fn ZipArchive::exists(self : ZipArchive, path : String) -> Bool

    Returns whether a ZIP entry exists.

    ZipArchive::read_bytes

    fn ZipArchive::read_bytes(self : ZipArchive, path : String) -> Bytes?

    Reads a ZIP entry as bytes.

    ZipArchive::read_text

    fn ZipArchive::read_text(self : ZipArchive, path : String) -> String? raise
    DocxError

    Reads a ZIP entry as UTF-8 text.

    join_zip_path

    fn join_zip_path(parts : Array[String]) -> String

    Joins ZIP path components with normalized separators.

    open_zip

    fn open_zip(data : BytesView) -> ZipArchive raise
    DocxError

    Opens ZIP bytes into an in-memory archive.

    split_zip_path

    fn split_zip_path(path : String) -> (String, String)

    Splits a ZIP path into directory and filename.