$ 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
Dependencies
lua >= 5.1