This is yet sadly not possible with the spreadsheet node. However, you can do something like the example below.
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"operation": "toFile",
"fileFormat": "csv",
"options": {}
},
"name": "Spreadsheet File",
"type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 1,
"position": [
750,
300
]
},
{
"parameters": {
"functionCode": "return [\n {\n json : {name: '12', age: 12}\n },\n {\n json: {name: '2' ,age:12}\n }\n]"
},
"name": "Function",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
500,
300
],
"notesInFlow": true,
"notes": "Mockup JSON"
},
{
"parameters": {
"functionCode": "const base64Data = items[0].binary.data.data\n\nlet data = Buffer.from(base64Data,'base64').toString()\n\ndata = data.replace(/,/g, ';')\n\nconst newBinaryData = items[0].binary.data\n\nnewBinaryData.data = Buffer.from(data).toString('base64');\n\nreturn [\n {\n json: {},\n binary: {\n data: newBinaryData\n }\n }\n]\n\n"
},
"name": "Function1",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
1000,
300
],
"notesInFlow": true,
"notes": "Replace , with ;"
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Function",
"type": "main",
"index": 0
}
]
]
},
"Spreadsheet File": {
"main": [
[
{
"node": "Function1",
"type": "main",
"index": 0
}
]
]
},
"Function": {
"main": [
[
{
"node": "Spreadsheet File",
"type": "main",
"index": 0
}
]
]
}
}
}