import { ZipArchive } from "https://deno.land/x/docxml@1.5.0/src/classes/ZipArchive.ts";
Constructors
new
ZipArchive(zip?: JSZip)Properties
readonly
zip: JSZipMethods
addJsonFile(location: string, js: any): this
Create a new JSON file in the DOCX archive.
addTextFile(location: string, contents: string): this
Create a new text file in the DOCX archive.
addXmlFile(location: string, node: Node | Document): this
Create a new XML file in the DOCX archive.
asUint8Array(): Promise<Uint8Array>
readText(location: string): Promise<string>
readXml(location: string): Promise<Document>
toFile(location: string): Promise<void>
Static Methods
fromFile(location: string): Promise<ZipArchive>