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

x/compress/tgz_archive/mod.ts>compress

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

Compresses a file to a .tgz format.

Parameters

src: string
  • The source file path.
dest: string
  • The destination file path.
optional
options: compressInterface
  • Optional parameters for compression.

Returns

Promise<void>
  • A promise that resolves when the operation is complete.