Hi folks,
I was wondering what RED.library.register is used for, and how we can use it when designing a custom node.
For example in the function node, this code snippet can be found:
RED.library.register("functions");
Does this mean that I can reuse the function node code somehow in my custom node. In my custom node I also have to run Javascript code in a secure sandbox, and I would like to avoid having to copy all the code. E.g. when the limited Node-Red API of the function node changes, it would be nice if I wouldn’t have to update my custom node …
Thanks !
Bart