import { ZipArchive } from "https://deno.land/x/docxml@2.0.1/src/classes/ZipArchive.ts";
Constructors
new
ZipArchive(zip?: JSZip)Properties
readonly
deprecated
zip: JSZipMethods
addBinaryFile(location: string, promised: Promise<Uint8Array>): this
Create a new text file in the DOCX archive.
In order to keep this method (and methods that use it, eg. Docx#toArchive) synchronous, we're only writing a promise to memory for now and leave the asynchronous operations for output time (see also ZipArchive#toUint8Array).
asUint8Array(): Promise<Uint8Array>
readBinary(location: string): Promise<Uint8Array>
readText(location: string): Promise<string>
readXml(location: string): Promise<Document>
toFile(location: string): Promise<void>
Static Methods
fromFile(location: string): Promise<ZipArchive>