Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/compress/zip/mod.ts>compress

compress and uncompress for Deno
Go to Latest
function compress
import { compress } from "https://deno.land/x/compress@v0.4.8/zip/mod.ts";

Compresses the specified files into an archive.

Parameters

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

Returns

Promise<boolean>

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