ee-simple-repl

Collect user input from a stream / stdin

ee-simple-repl

Collect user input from a stream / stdin

npm install ee-simple-repl

var Repl = require('ee-repl');

// repl on stdin / stdout
var myRepl = new Repl();


// repl on custom streams
var myRepl = new Repl({
      inputStream:  myInputStream
    , outputStream: myOutputStream
});

print some text

repl.say('hi');

print yellow text

repl.warn('hi');

print red text

repl.error('hi');

ask the user for single line input

repl.ask('How are you?', function(answer){

});

Ask the user for a y/n input

repl.ask('Is the input ok?', function(isOk){

});