Skip to content

Instantly share code, notes, and snippets.

@larzconwell
Created November 4, 2012 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save larzconwell/4013950 to your computer and use it in GitHub Desktop.
Save larzconwell/4013950 to your computer and use it in GitHub Desktop.
var repl = require('repl')
, rl;
rl = repl.start({
prompt: '>>> '
, input: process.stdin
, output: process.stdout
});
rl.on('close', function () {
console.log('Exiting...');
process.exit(0);
});
console.log(rl.commands) // List of predefined commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment