Created
November 19, 2012 06:38
-
-
Save asalant/4109259 to your computer and use it in GitHub Desktop.
Run a fibrous node console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vm = require('vm'); | |
var repl = require('repl'); | |
var fibrous = require('fibrous'); | |
console.log("Starting fibrous REPL..."); | |
repl.start({ | |
eval: fibrous(function(code, context, file) { | |
return vm.runInContext(code, context, file); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment