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-29 years ago3,312 downloads
1.0-19 years ago89 downloads

Dependencies

lua >= 5.1

Labels

Manifests