|
|
|
|
|
by aeharding
3716 days ago
|
|
"safe-eval lets you execute JavaScript code without having to use the much discouraged and feared upon eval(). safe-eval has access to all the standard JavaScript API of the underlying engine. It is implemented using node's vm module." [1] [1] https://www.npmjs.com/package/safe-eval |
|
"script.runInNewContext() is quite useful, but safely running untrusted code requires a separate process."[0]
[0] - https://nodejs.org/api/vm.html#vm_script_runinnewcontext_san...