webrepl.js
function(port, options) {
    var stream = new SimpleStream();
    var prompt = 'node> ';
    var rs = repl.start({ prompt: prompt, input: stream, output: stream});
    var replHttpServer = new ReplHttpServer(prompt, stream, rs, options);
    replHttpServer.start(port);
    return rs;
}
function(port, options) {
    var stream = new SimpleStream();
    var prompt = 'node> ';
    var rs = repl.start({ prompt: prompt, input: stream, output: stream});
    var replHttpServer = new ReplHttpServer(prompt, stream, rs, options);
    replHttpServer.start(port);
    return rs;
}
function ( port , options ) { var stream = new SimpleStream ( ) ; var prompt = 'node> ' ; var rs = repl . start ( { prompt : prompt , input : stream , output : stream } ) ; var replHttpServer = new ReplHttpServer ( prompt , stream , rs , options ) ; replHttpServer . start ( port ) ; return rs ; }
Starts a repl served via a web console.
@param {Integer} port Port to serve web console
@param {Object} options Set username, password, and hostname options
@return Return the REPLServer. Context can be set on this variable.
Starts a repl served via a web console .