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

x/compress/zip/compress.ts>compress

compress and uncompress for Deno
Latest
function compress
import { compress } from "https://deno.land/x/compress@v0.5.0/zip/compress.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.