Skip to main content
Module

x/jszip/mod.ts>JSZip#addFile

A JSZip wrapper for handling zipfiles in deno
Latest
method JSZip.prototype.addFile
import { JSZip } from "https://deno.land/x/jszip@0.11.0/mod.ts";

Add a file to the archive

Parameters

path: string

Relative path to file

optional
content: string | Uint8Array

Content of the file

optional
options: JSZipFileOptions

Optional information about the file

Returns

JSZip object