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-23 years ago1,258 downloads
1.0-13 years ago36 downloads

Dependencies

lua >= 5.1

Labels

Manifests