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
File Data
data
/ Required
file
File to Gzip compress

Decompress Gzip

Decompress Gzip file | key: decompressGzip

InputNotes
Gzip File Data
data
/ Required
file
Gzip data to decompress

Unzip

Decompress a Zip file | key: unzip

InputNotes
Zip File Data
data
/ Required
file
Zip data to decompress

{
"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
Files
data
/ Required
files
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.

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