Skip to content

Instantly share code, notes, and snippets.

@ragingwind ragingwind/run.js
Last active Apr 9, 2018

Embed
What would you like to do?
running code block by wrapping module
const m = require('module')
const res = vm.runInThisContext(m.wrap(code))(
exports,
require,
module,
__filename,
__dirname
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.