eximanager
Version:
Virtual domains/users manager for Exim
24 lines (16 loc) • 421 B
JavaScript
var readline = require('readline');
function Console(serviceLocator) {
this.sl = serviceLocator;
this.sl.set('console', this);
};
module.exports = Console;
Console.prototype.getReadline = function () {
if (typeof this.rl != 'undefined')
return this.rl;
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
return rl;
};