Skip to content

leafo/lua-shoco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-shoco

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.

Installation

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

Usage

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)

License

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.

About

Lua bindings to shoco compression library

Resources

License

Stars

Watchers

Forks

Packages

No packages published