libarchive
v0.0.1-develop.14
Published
Multi-format archive and compression library
Maintainers
Readme
libarchive
JavaScript wrapper around the libarchive C library, using WASMUX toolchain.
Usage
$> npm install libarchiveimport libarchive from "libarchive/node";
await libarchive.compress([ "dir", "file" ], "archive.zip");
await libarchive.decompress("archive.zip", "dist");CLI
The command line libarchive supports files extracting from archive.
$> npx libarchive -xvf archive.zip -C dist$> npx libarchive --extract --verbose --file=archive.zip --directory=distThe command line libarchive supports compressing files into archive.
$> npx libarchive -cvf archive.tar dir file$> npx libarchive --create --verbose --file=archive.zip dir file