Skip to content

sibaiper/huffman_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HUFFMAN ENCODING/DECODING CLI

this is merely a hobby project and should not be used in any professional environment. This tool only decodes files encoded using itself. It will probably produce nonsense if used elsewhere

A simple CLI tool that encodes and decodes (text) files using the huffman compressing algorithm.

BUILDING

  1. clone this repository
  2. in the root directory run go build -o huffman-cli
  3. wait
  4. move to the next step (USAGE)

USAGE

./huffman-cli <action> -i <input-file-name> -o <output-file-name>

example usage:

./huffman-cli encode -i example.txt -o encoded.bin
./huffman-cli decode -i encoded.bin -o decoded.txt

From few observations, the compression works best on larger files. On smaller files, it produces bigger files than the original since it is storing meta-data in the encoded file (for decoding).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages