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

x/ayonli_jsext/archive.ts

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/archive.ts";

Functions and classes for collecting files into one single archive file, or extracting files from a archive file.

This module currently supports the tar format, and is available in both server and browser environments.

NOTE: This module depends on the Web Streams API, in Node.js, it requires Node.js v18.0 or above.

Classes

A Tarball instance represents a tar archive.

Functions

Archives the specified directory and puts it to the specified tarball file.

Extracts files from a tarball file and writes them to the specified directory.

Interfaces

Information about a file in a tar archive.

Options for creating a tarball or loading a tarball.

Options for the untar function.