compression.gzipCompress

This function takes a string (stringified JSON/XML, base64 encoded binary) as an input and returns a compressed string using the GZip compression algorithm.

Syntax
compression.gzipCompress (str) 
Arguments
Argument Type Description
str String A string that should be compressed
Returns
Type Description
String Compressed string
Examples

compression.gzipCompress("Hello World")

The output is compressed data in an unreadable format.