Skip to content

Instantly share code, notes, and snippets.

@hayes
Created January 17, 2015 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hayes/9556accc757c63895a19 to your computer and use it in GitHub Desktop.
Save hayes/9556accc757c63895a19 to your computer and use it in GitHub Desktop.
var run = require('jsdom-eval')
function(js, html, stdout, stderr) {
run(js, html, function(data) {
(data.method === 'error' ? stderr : stdout).write(data.message)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment