Module

x/zipjs/index.d.ts>ZipWriter#add

JavaScript library to zip and unzip files in the browser and Deno supporting multi-core compression, compression streams, Zip64 and encryption.
Go to Latest
method ZipWriter.prototype.add
import { ZipWriter } from "https://dotland.deno.dev/x/zipjs@v2.6.11/index.d.ts";

Adds an entry into the zip file

Type Parameters

ReaderType

Parameters

filename: string

The filename of the entry.

reader: Reader<ReaderType> | ReadableReader | void

The Reader instance used to read the content of the entry.

optional
options: ZipWriterAddDataOptions

The options.

Returns

Promise<Entry>

A promise resolving to an Entry instance.