Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/classes/ZipArchive.ts>ZipArchive#addBinaryFile

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
method ZipArchive.prototype.addBinaryFile
import { ZipArchive } from "https://deno.land/x/docxml@3.0.1/src/classes/ZipArchive.ts";

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).

Parameters

location: string
promised: Promise<Uint8Array>