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

x/zipjs/index.js>ZipWriter#add

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

Adds an entry into the zip file

Type Parameters

ReaderType

Parameters

filename: string

The filename of the entry.

optional
reader:
| ReadableReader
| Reader<unknown>[]
| ReadableReader[]

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

optional
options: ZipWriterAddDataOptions

The options.

Returns

Promise<EntryMetaData>

A promise resolving to an EntryMetaData instance.