What is vm2?
"vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules."
vm2 is used to facilitate high-performance Node.js workflows. It provides a slim footprint of 227.3 KB on disk.
Installation Guide
# Install via NPM
npm install vm2
# Install via Yarn
yarn add vm2