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