Skip to content

Instantly share code, notes, and snippets.

View pkrumins's full-sized avatar

Peter Krumins pkrumins

View GitHub Profile
module.exports = Prompt;
function Prompt(question, cb) {
if (!(this instanceof Prompt)) return new Prompt(question, cb);
if ((question && cb) !== undefined) prompt(question, cb);
var self = this;
var vars = {};
var queue = [];
self.ask = function (question, into) {