Lua bindings for the teeworlds huffman compression code written in C.
luarocks install luluman
local huffman = require("luluman")
local data = string.char(0x1c, 0xa5, 0xb8, 0x01)
local decompressed = huffman.decompress(data, #data)
assert(decompressed == "a")
local text = "hello"
data = huffman.compress(text, #text)
assert(text == huffman.decompress(data, #data))