First of all: I do not mean parsing the arguments and parameters from the process.argv array, but a user request and input / output processing. I looked through Node.js official list of modules without finding any sections or subsections that mention input. Actually, the search for βinputβ on this page gets only 1 result, which has something to do with YAML.
Anyway, I believe that the cli input should be asynchronous, and I solved this problem before using stdin.on('data') , which was at least dirty. This seems like an ideal task for the node module, which can come with additional positive effects such as progress bars, spinners, color output, input validation, etc.
There are probably some modules that do this, but I cannot find them.
Help !!
(To clarify, the only functionality I require is to simplify user input processing)
source share