Hacker News new | ask | show | jobs
by TheAceOfHearts 3035 days ago
You can use the vm module [0] to securely execute the code.

[0] https://nodejs.org/api/vm.html