Module

x/zipjs/index.js>ZipDirectoryEntry#addFile

JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.
Go to Latest
method ZipDirectoryEntry.prototype.addFile
import { ZipDirectoryEntry } from "https://dotland.deno.dev/x/zipjs@v2.7.52/index.js";

Adds an entry with content provided via a File instance

Parameters

file: File

The File instance.

optional
options: ZipWriterAddDataOptions

The options.

Returns

Promise<ZipEntry>

A promise resolving to a ZipFileEntry or a ZipDirectoryEntry instance.