Skip to main content

Deno Zip archive Forked from (https://github.com/moncefplastin07/deno-zip) !Compatible with jsr Streaming cross-platform zip tool written for Deno 🦕.

This package works with Deno
This package works with Deno
JSR Score
94%
Published
7 months ago (1.3.1)
function compress
compress(
files: string | string[],
archiveName?: string,
options?: CompressOptions,
): Promise<boolean>

Compresses the specified files into an archive.

Parameters

files: string | string[]
  • The file(s) to compress. It can be a single file or an array of files.
optional
archiveName: string
  • The name of the archive file. Defaults to "./archive.zip".
optional
options: CompressOptions
  • Optional compress options.

Return Type

A promise that resolves to a boolean indicating whether the compression was successful.

Add Package

deno add jsr:@fakoua/zip-ts

Import symbol

import { compress } from "@fakoua/zip-ts";

---- OR ----

Import directly with a jsr specifier

import { compress } from "jsr:@fakoua/zip-ts";