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

x/compress/mod.ts>tgz.uncompress

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

Uncompresses a .tgz or .gz file to a specified destination.

Parameters

src: string
  • The source file path.
dest: string
  • The destination directory path.
optional
options: uncompressInterface
  • Optional parameters for uncompression.

Returns

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