No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
lib
test
LICENSE.md
README.md

README.md

Lua smaz

simple compression library suitable for compressing very short strings

Running the tests

$ ./test/test_smaz.lua

Usage

smaz = require("smaz")

test_string = "StringToEncode"

compressed_string = smaz.compress(test_string)

uncompressed_string, err = smaz.decompress(compressed_string)

if not uncompressed_string then
    print("Ooops, error: " .. err)
else
    print("Hooray!")
end

License

This project is licensed under the MIT License - see the LICENSE.md file for details