Fork me on GitHub
#nbb
<
2023-09-09
>
Paavo Pokkinen19:09:27

Thinking if nbb could work in Node-red (flow programming tool that runs on node.js). They come with built-in node named “function” where one can write javascript. It https://github.com/node-red/node-red/blob/master/packages/node_modules/%40node-red/nodes/core/function/10-function.js#L371 vm.script to execute it’s contents. Maybe it is enough to wrap supplied function to js string, and use loadString to on it? Seems quite simple.