3 ms·
There is vm2 [0] for nodejs, but if you look at the issues there are escapes found occasionally, even some this year. I think it's too risky to run untrusted co
by turblety 4y ago
There is vm2 [0] for nodejs, but if you look at the issues there are escapes found occasionally, even some this year. I think it's too risky to run untrusted code on node.
You could run a headless chrome using puppeteer, then run workerbox. But it's probably too much overhead for a server app.
Oh, if you're making a form builder, I have to recommend json-editor [1]. It's not mine and I haven't actually used it just (I've only found really recently), but basically you give a JSONSchema and it will make a form for you, with validations and conditionals all built in. Might come in useful.
0. https://github.com/markwylde/vm2-process https://github.com/markwylde/vm2-process
1. https://github.com/jdorn/json-editor https://github.com/jdorn/json-editor