Vital.sandbox
Shrinker

shrinker.compress

Shared

Compresses a string using zlib library


Syntax

local result = shrinker.compress(input)

Parameters

TypeNameDescription
stringinputString containing data to be compressed

Returns

TypeNameDescription
string / boolresultCompressed string on successful execution, or false on failure

Examples

local input = "Hello World"

engine.print("Input:", input)
engine.print("Compressed:", shrinker.compress(input))

On this page