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

x/compress/mod.ts>tgz.compress

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

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.