{"id":19308014,"url":"https://github.com/srijanmukherjee/huffman-compression","last_synced_at":"2025-07-25T05:38:43.129Z","repository":{"id":200054584,"uuid":"704700172","full_name":"srijanmukherjee/huffman-compression","owner":"srijanmukherjee","description":"A huffman coding based text compression utilility tool.","archived":false,"fork":false,"pushed_at":"2023-10-24T20:23:14.000Z","size":25,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T01:25:37.445Z","etag":null,"topics":["compression","cpp","huffman-coding"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srijanmukherjee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-13T21:20:15.000Z","updated_at":"2023-10-30T05:22:06.000Z","dependencies_parsed_at":"2025-01-06T01:23:07.884Z","dependency_job_id":"809d24a3-5a20-41e8-bd85-e87a237a546d","html_url":"https://github.com/srijanmukherjee/huffman-compression","commit_stats":null,"previous_names":["srijanmukherjee/huffman-compression"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fhuffman-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fhuffman-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fhuffman-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fhuffman-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srijanmukherjee","download_url":"https://codeload.github.com/srijanmukherjee/huffman-compression/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240409841,"owners_count":19796795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compression","cpp","huffman-coding"],"created_at":"2024-11-10T00:13:20.368Z","updated_at":"2025-02-24T03:16:08.184Z","avatar_url":"https://github.com/srijanmukherjee.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# huffman-compression\n\nA simple cli tool to compress/decompress text (for now) files using [huffman coding algorithm](https://en.wikipedia.org/wiki/Huffman_coding).\n\n## Getting started\n```sh\n# Clone the repository (SSH)\ngit clone --recurse-submodules git@github.com:srijanmukherjee/huffman-compression.git\n\n# Clone the repository (HTTPS)\ngit clone --recurse-submodules https://github.com/srijanmukherjee/huffman-compression.git\n\n# initialize build directory\nmake init\n\n# to build the project\nmake\n\n# to compress a text file\n./build/huffman filepath\n\n# to decompress\n./build/huffman -d filepath\n```\n\n## Usage\n```\nUsage: huffman [--help] [--version] [--verbose] [--decompress] [--output VAR] file\n\nPositional arguments:\n  file              path to file \n\nOptional arguments:\n  -h, --help        shows help message and exits \n  -v, --version     prints version information and exits \n  --verbose         enable verbose output \n  -d, --decompress  decompress file \n  -o, --output      output file path [default: \"\"]\n```\n\n## Result\n\n- examples/sample0.txt\n```\n1009K sample0.txt.bin\n1.8M  examples/sample0.txt\n```\n\n## Dependencies\n- [p-ranav/argparse](https://github.com/p-ranav/argparse) for cli argument parsing\n\n## License\nThis project is available under the [MIT](https://opensource.org/license/mit/) license","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrijanmukherjee%2Fhuffman-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrijanmukherjee%2Fhuffman-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrijanmukherjee%2Fhuffman-compression/lists"}