Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
VM module
node v10.24.1
version:
2.0.0
endpoint
share
tweet
const VM = require("vm"); const context = VM.createContext({ require }); // Need this to let the notebook know you want lodash. if (false) { require("lodash") } VM.runInContext(`require("lodash")`, context);
Loading…
no comments
sign in
to comment