This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |