lua-brotli

Brotli compression library binding for Lua.

$ luarocks install lua-brotli

Consists of two functions: compress and decompress.
Both functions take an input string and return an output string.

Example:

local brotli = require("brotli")
local s = "Hello, World"
local e = brotli.compress(s)
local d = brotli.decompress(e)
assert(s == d)

Versions

1.0-28 years ago2,584 downloads
1.0-18 years ago89 downloads

Dependencies

lua >= 5.1

Labels

Manifests