compression.json•3.18 kB
{
"nodeType": "n8n-nodes-base.compression",
"displayName": "Compression",
"description": "Compress and decompress files",
"version": [
1,
1.1
],
"properties": [
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "decompress",
"description": "Compress files into a zip or gzip archive",
"options": [
{
"name": "Compress",
"value": "compress",
"description": "Compress files into a zip or gzip archive"
},
{
"name": "Decompress",
"value": "decompress",
"description": "Decompress zip or gzip archives"
}
]
},
{
"name": "binaryPropertyName",
"displayName": "Input Binary Field(s)",
"type": "string",
"default": "data",
"description": "To process more than one file, use a comma-separated list of the binary fields names",
"placeholder": "e.g. data,data2,data3",
"required": true,
"displayOptions": {
"show": {
"operation": [
"compress"
]
}
}
},
{
"name": "outputFormat",
"displayName": "Output Format",
"type": "options",
"default": "",
"description": "Format of the output",
"options": [
{
"name": "Gzip",
"value": "gzip"
},
{
"name": "Zip",
"value": "zip"
}
],
"displayOptions": {
"show": {
"operation": [
"compress"
],
"@version": [
1
]
}
}
},
{
"name": "fileName",
"displayName": "File Name",
"type": "string",
"default": "",
"description": "Name of the output file",
"placeholder": "e.g. data.zip",
"required": true,
"displayOptions": {
"show": {
"operation": [
"compress"
],
"outputFormat": [
"zip"
]
}
}
},
{
"name": "binaryPropertyOutput",
"displayName": "Put Output File in Field",
"type": "string",
"default": "data",
"displayOptions": {
"show": {
"outputFormat": [
"zip"
],
"operation": [
"compress"
]
}
}
},
{
"name": "outputPrefix",
"displayName": "Output File Prefix",
"type": "string",
"default": "data",
"description": "Prefix to add to the gzip file",
"required": true,
"displayOptions": {
"show": {
"operation": [
"compress"
],
"outputFormat": [
"gzip"
],
"@version": [
1
]
}
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}