Shrinker
shrinker.compress
Shared
Compresses a string using zstd library
Syntax
local result = shrinker.compress(input)Parameters
| Type | Name | Description |
|---|---|---|
string | input | String containing data to be compressed |
Returns
| Type | Name | Description |
|---|---|---|
string / bool | result | Compressed string on successful execution, or false on failure |
Examples
local input = "Hello World"
engine.print("info", "Input:", input)
engine.print("info", "Compressed:", shrinker.compress(input))