Skip to main content
Module

x/zipjs/index.js>initShimAsyncCodec

JavaScript library to zip and unzip files in the browser and Deno supporting multi-core compression, compression streams, Zip64 and encryption.
Go to Latest
function initShimAsyncCodec
import { initShimAsyncCodec } from "https://deno.land/x/zipjs@v2.6.11/index.js";

Transforms event-based third-party codec implementations into implementations compatible with zip.js

Parameters

library: EventBasedZipLibrary

The third-party codec implementations.

constructorOptions: any | void

The options passed to the third-party implementations when building instances.

registerDataHandler: registerDataHandler

The function called to handle the data events triggered by a third-party codec implementation.

Returns

ZipLibrary

An instance containing classes compatible with ZipDeflate and ZipInflate.