JavaScript wrapper around the libarchive C library, using WASMUX toolchain.
$> npm install libarchive
import libarchive from "libarchive/node";
await libarchive.compress([ "dir", "file" ], "archive.zip");
await libarchive.decompress("archive.zip", "dist");
The command line libarchive supports files extracting from archive.
$> npx libarchive -xvf archive.zip -C dist
$> npx libarchive --extract --verbose --file=archive.zip --directory=dist
The command line libarchive supports compressing files into archive.
$> npx libarchive -cvf archive.tar dir file
$> npx libarchive --create --verbose --file=archive.zip dir file