libarchive
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-develop.13 • Public • Published

libarchive

JavaScript wrapper around the libarchive C library, using WASMUX toolchain.

Usage

$> npm install libarchive
import 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=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

Package Sidebar

Install

npm i libarchive

Weekly Downloads

14

Version

0.0.1-develop.13

License

MIT

Unpacked Size

1.8 MB

Total Files

18

Last publish

Collaborators

  • yurii.yakubin