Last updated:
0 purchases
sarchiver
SArchiver #
A CLI app to compress and decompress various files into various compression formats. Supported compression formats: Zip, Tar
Installation #
1. Using binary executable #
Download latest binary release from here
$ ./sarchiver
copied to clipboard
2. Using Pub.dev #
$ dart pub global activate sarchiver
copied to clipboard
3. Manual #
$ git clone https://github.com/surajkarki66/SArchiver
$ cd SArchiver
$ dart run ./bin/sarchiver.dart
copied to clipboard
Usage #
$ sarchiver <command> [arguments]
copied to clipboard
Global Options
-h, --help
Display help
-v, --version
Display version
Available Commands
compress
Compress files into a specific compression format.
decompress
Decompress the compressed file into original files.
Compress Arguments
-i, --input-path
Specify path to input file or directory
-o, --output-file-path
Specify path to store compressed file
-f, --format
Specify compression file format [zip (default), tar]
Decompress Arguments
-i, --input-file-path
Specify path to input compressed file
-o, --output-file-path
Specify path to store decompressed file
Help #
$ sarchiver --help
copied to clipboard
Examples #
Below are some examples of sarchiver usage.
Compress the file in the current directory and store the compressed file in the current directory:
$ ./sarchiver compress -i passport.pdf -o ./
copied to clipboard
Loading...
Compressed 1 into ./1683283436296.zip
Decompress the compressed file in the current directory and store the decompressed file in the current directory.
$ ./sarchiver decompress -i 1683283436296.zip -o ./
copied to clipboard
Decompressed: passport.pdf (450222 bytes)
Loading...
Compressing multiple files into a single compressed file and storing it in the current directory:
$ ./sarchiver compress -i passport.pdf,resume.pdf,IMG_7569.jpg -o ./
copied to clipboard
Loading...
Compressed 3 into ./1683284112543.zip
Compressing multiple files into a tar file and storing it in the current directory:
$ ./sarchiver compress -i passport.pdf,resume.pdf,IMG_7569.jpg -o ./ -f tar
copied to clipboard
Loading...
Compressed 3 into ./1683284266080.tar
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.