Skip to main content

darchive 3.1.0 copy "darchive: ^3.1.0" to clipboard
darchive: ^3.1.0 copied to clipboard

A CLI tool that provides support for compression/expansion of a number of different archive types.

darchive #

A command line tool to manage archives.

Expands and Compresses files to/from an archive file.

darchive expand --name files.tar.gz --to extracted

TAR (.tar and .tar.gz), ZIP (.zip), and XZ (.xz, a TAR archive compressed with xz) can be compressed and expanded. RAR expansion remains disabled until a safe decoder is available. TAR archives with PAX, sparse, or other extended entry types are rejected during expansion. ZIP links, special files, unsafe paths, and encrypted entries are rejected before extraction.

Expansion writes into a private staging directory and replaces the destination only after decoding succeeds. The default maximum total extracted size is 1 GiB; use --max-bytes to change it for a trusted archive. --to is required, and its destination must not be the current working directory. On Windows, the destination must be on the same volume as LOCALAPPDATA. Tar.gz expansion requires a working gzip command to verify the archive trailer. ZIP extraction also caps the central directory at 64 MiB and validates file CRCs before the destination is replaced.

Usage: darchive [arguments]

Global options: -h, --help Print this usage information. -d, --[no-]debug Show debug level logging

Available commands: compress Compresses a directory into an archive file expand Expands files from an archive file

0
likes
160
points
43
downloads

Documentation

API reference

Publisher

verified publisheronepub.dev

Weekly Downloads

A CLI tool that provides support for compression/expansion of a number of different archive types.

Repository (GitHub)

License

MIT (license)

Dependencies

archive, args, dcli, dcli_core, ffi, path

More

Packages that depend on darchive