Skip to content

Utility for listing and unpacking contents from nested zip archives

License

Notifications You must be signed in to change notification settings

taivokasper/unzipr

Repository files navigation

Unzipr

Travis build status GitHub latest release Dependencies up-to-date

Latest version downloads Total downloads

Commit activity the past year Contributors

A command line utility for in-memory listing and unpacking files from nested zip files.

Usage

  • Listing files from a zip file in a zip file
$ unzipr -l test-zip-of-zip.zip test.zip
test/
test/test.txt
  • Unpacking files from a nested zip file to standard out
$ unzipr -p test-zip-of-zip.zip test.zip test/test.txt
Hello World!
  • Unpacking files from a nested zip file to current working directory
$ unzipr test-zip-of-zip.zip test.zip
  • Unpacking files from a nested zip file to specific directory
$ unzipr -d /tmp/target test-zip-of-zip.zip test.zip

Installing

MacOs with Homebrew

brew tap taivokasper/utilities
brew install unzipr

64-bit Linux

  • Download the latest release from here
  • Add the binary to path

Windows

  • Build from source :(

Building

cargo build --release

Testing

cargo test
cargo build
./integration-tests.sh

Contributing

Issues and/or pull requests are welcome!