Console readlines
Console readline with promise
What's ReadLine Promise?
Module to read console lines in a simple way and with promises
How install?
npm install --save readline-promises
Examples
Readline
// Importconst ReadLine = ;// Objectconst Read = ;// Send QuestionRead ; // Error handler
Options
// Importconst ReadLine = ;// Objectconst Read = ;// Optionsconst options = 'windows' 'linux' 'mac os';// Send QuestionRead ; // Error handler
Option [y/n]
// Importconst ReadLine = ;// Objectconst Read = ;// Send QuestionRead ; // Error handler
Concat questions
// Importconst ReadLine = ;// Optionsconst options = concat: true;// Objectconst Read = options;// Send QuestionRead ; // Error handler
Concat all methods
// Importconst ReadLine = ;// Configsconst options = concat: true;const osOptions = 'windows' 'linux' 'mac os';// Objectconst Read = options;// Send QuestionRead ; // Error handler