0.0.1 • Published 2 years ago
tar-extract v0.0.1
Tar Extract
tar-extract is a Node.js package for extracting .tar and .tar.gz files.
It provides a simple and easy-to-use API for decompressing these common archive file formats.
Installation
npm install tar-extractOr use pnpm:
pnpm add tar-extractUsage Example
import { extract } from "tar-extract";
extract("./00.tar.gz", "./").catch((err) =>
console.error("extract failed: ", err)
);API Documentation
extract(path: string, dest: string)
Extracts a .tar or .tar.gz file to the specified directory.
pathpath of the archive filedestpath to extract to
0.0.1
2 years ago