Skip to main content
Module

x/zipjs/index.d.ts>ZipDirectoryEntry

JavaScript library to zip and unzip files in the browser and Deno
Go to Latest
class ZipDirectoryEntry
extends ZipEntry
import { ZipDirectoryEntry } from "https://deno.land/x/zipjs@v2.4.26/index.d.ts";

Constructors

new
ZipDirectoryEntry(
fs: FS,
name: string,
params: ZipEntryConstructorParams,
)

Methods

addBlob(name: string, blob: Blob): ZipFileEntry<Blob, Blob>
addData64URI(name: string, dataURI: string): ZipFileEntry<string, string>
addFileSystemEntry(fileSystemEntry: FileSystemEntry): Promise<ZipEntry>
addHttpContent(
name: string,
url: string,
options?: HttpOptions,
): ZipFileEntry<string, string>
addText(name: string, text: string): ZipFileEntry<string, string>
addUint8Array(name: string, array: Uint8Array): ZipFileEntry<Uint8Array, Uint8Array>
exportBlob(options?: ZipDirectoryEntryExportOptions): Promise<Blob>
exportData64URI(options?: ZipDirectoryEntryExportOptions): Promise<string>
exportUint8Array(options?: ZipDirectoryEntryExportOptions): Promise<Uint8Array>
getChildByName(name: string): ZipEntry
importBlob(blob: Blob, options?: ZipReaderConstructorOptions): Promise<void>
importData64URI(dataURI: string, options?: ZipReaderConstructorOptions): Promise<void>
importHttpContent(url: string, options?: ZipDirectoryEntryImportHttpOptions): Promise<void>
importUint8Array(array: Uint8Array, options?: ZipReaderConstructorOptions): Promise<void>