Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jsonstathem/archivator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a simple archivator that can compress and decompress files.

Features

  • Compression method:
    • Variable Length Coding (VLC) algorithm.
    • Shannon-Fano algorithm.

Usage

Install

  1. Clone the repository
  2. Build the project
go build

Compress file

./archivator pack -a <algorithm> <file>

Decompress file

./archivator unpack -a <algorithm> <file>

Example

Compress file using Shannon-Fano algorithm

./archivator pack -a vlc Pride\ and\ Prejudice.txt

Decompress file using Shannon-Fano algorithm

./archivator unpack -a vlc Pride\ and\ Prejudice.vlc

Screenshots

img.png

As you can see the size of the file has decreased

Book file compressed and correctly decompressed back. Decoded file is the same as the original file.

References

About

CLI tool

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages