node.js - Prompt module in NodeJS repeating the input -
I am making an application using Nodes and its one CLI application; To get input from the user, I am using the "quick" module I can use it, but when typing in the prompt of the prompt, each letter is being repeated, though the output is OK! Code is below Please help.
Prompt. Start (); Prompt.get ({properties: {name: {description: "What is your name?"} Magenta}}}, function (mistake, result) {console.log ("You said your name is:" Saini + Results Name.cyan);});
Image:
var readline = required ('readline'); Var rli = readline.create interface ({input: process.stdin, output: process.stdout}); Rli.question ('what is your name?', Function (answer) {console.log ('you have given your name:' + reply); rli.close ();});
Comments
Post a Comment