restore JS examples, add luxon and jmespath to js, and add some clarifications and small updates

This commit is contained in:
Deborah Barnard
2022-05-09 14:53:35 +01:00
parent 465c9a17db
commit bf46adb0df
7 changed files with 461 additions and 8 deletions

View File

@@ -0,0 +1,22 @@
# Split binary file data into individual items
If you receive more than one binary file from a node, you can split the binary data into individual items using the following code snippet.
```js
let results = [];
for (item of items) {
for (key of Object.keys(item.binary)) {
results.push({
json: {
fileName: item.binary[key].fileName
},
binary: {
data: item.binary[key],
}
});
}
}
return results;
```