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-26 years ago2,184 downloads
1.0-16 years ago48 downloads

Dependencies

lua >= 5.1

Labels

Manifests