The following code is part of the Node-Red core node libraries, as you can see it executes scripts in a virtual machine "vm" Node Js module.
script on github node-red link
Any ideas on how the code should be written to execute script using the context of the Node Js environment instead of "vm" removing virtual machine usage?
Note: I am not interested in the problems related to executing insecure code, I just want it to do it outside the virtual machine to be able to use all the Node Js modules and their Globals without breaking Node-Red, because runInThisContext, get() and edit config.js is not the solution I want to remove the use of "vm".
Thanks for any idea
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…