Skip to content

Instantly share code, notes, and snippets.

@asalant
Created November 19, 2012 06:38
Show Gist options
  • Save asalant/4109259 to your computer and use it in GitHub Desktop.
Save asalant/4109259 to your computer and use it in GitHub Desktop.
Run a fibrous node console
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