Skip to main content

Zip Component

Provides utility methods for working with zip files

Component key: zip

Description#

The Zip component helps with handling and manipulating .zip files.

Actions#

Compress Gzip#

Compress Gzip file | key: compressGzip

InputNotes
Input
File Data
data
/ Required
Notes
File to Gzip compress

Decompress Gzip#

Decompress Gzip file | key: decompressGzip

InputNotes
Input
Gzip File Data
data
/ Required
Notes
Gzip data to decompress

Unzip#

Decompress a Zip file | key: unzip

InputNotes
Input
Zip File Data
data
/ Required
Notes
Zip data to decompress

Output Example Payload#

{  "data": [    {      "name": "filename.txt",      "data": {        "data": {          "type": "Buffer",          "data": [            104,            101,            108,            108,            111          ]        },        "contentType": "text/plain"      },      "path": "path/"    }  ]}

Zip#

Compress a Zip file | key: zip

InputNotes
Input
Files
data
/ Required
Notes
Files to include in the Zip; should be an object with filename keys and values containing file contents

Collection Tools has useful utilities for building up data to provide to the Zip action.

Output Example Payload#

{  "data": {    "type": "Buffer",    "data": [      104,      101,      108,      108,      111    ]  },  "contentType": "application/zip"}