$$compress
Compress using GZip
Usage
{
"$$compress": /* String to compress */,
"charset": "UTF-8" /* or UTF-16 / ISO-8859-1 */
}
"$$compress([charset]):{input}"
note
Concrete values in the usage example are default values.
Returns
string
Arguments
| Argument | Type | Values | Required / Default Value | Description |
|---|---|---|---|---|
| Input | string | Yes | String to compress | |
charset | enum | UTF-8/ UTF-16/ISO-8859-1 | UTF-8 | Character encoding of input |
Examples
Input
Definition
Output
"Hello World 🌎"
{
"$$compress": "$"
}
"\u001f\b\u0000\u0000\u0000\u0000\u0000\u0000ÿóHÍÉÉW\bÏ/ÊIQø0¿§\u000f\u0000ýIë\u0010\u0000\u0000\u0000"