zlibcmd is row zlib compression commandline program.
The zlibcmd program reads from standard input and writes to standard output either compressing or uncompressing its input using raw zlib compression. It can be used to uncompress or compress data that is compressed with raw zlib compression. This program is provided primarily as a jig tool, though it could be used for other purposes.
This program should not be used as a general purpose compression tool. Use something like gzip instead.
Compressing a file
$ echo -n 'zlib' > decompressed.txt $ zlib --compress < decompressed.txt > compressed.txt
Decompressing a compressed file
$ zlib --decompress < compressed.txt zlib
Compressing and base64 encoding
$ echo -n 'zlib' | zlib --compress | base64 eJyryslMAgAEZAGy
Base64 decoding and decompressing
$ echo -n 'eJyryslMAgAEZAGy' | base64 --decode | zlib --decompress zlib
Download from the following url.
Or, you can use Homebrew (Only macOS).
$ brew tap ebc-2in2crc/zlibcmd $ brew install zlibcmd
- Fork this repository
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request