Lua bindings for shoco, a compression library designed for short strings. The bindings ship with the original C sources, so no external dependencies or submodules are required.
Install the latest stable release from LuaRocks:
luarocks install lua-shoco
For development builds from this repository:
luarocks make lua-shoco-dev-1.rockspec --local --lua-version=5.1
local shoco = require("shoco")
local text = "the quick brown fox jumps over the lazy dog"
local compressed = shoco.compress(text)
local restored = shoco.decompress(compressed)
assert(restored == text)
The Lua binding (this repository) is released under the MIT License © 2025 Leaf
Corcoran. The vendored shoco sources retain their original MIT License © 2014
Christian Schramm. See LICENSE
for details.