Module

x/zipjs/index.js>ZipDirectoryEntry

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

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>
exportWritable(writable?: WritableStream, 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>
importReadable(readable: ReadableStream, options?: ZipDirectoryEntryImportHttpOptions): Promise<void>
importUint8Array(array: Uint8Array, options?: ZipReaderConstructorOptions): Promise<void>