This is good and useful, but perhaps you would have wanted to use https://github.com/SBoudrias/Inquirer.js instead of writing your own? I don't know if you knew about this, but I always find myself writing things that already exist just because I couldn't find them. It is very frustrating.
2 comments
[ 3.8 ms ] story [ 13.5 ms ] threadThe major reason is that I want really tiny modules to keep them focused on a specific thing and avoid mainteance overhead. I wanted one module for each kind of prompt and since I wrote my own helper modules (https://github.com/derhuerst/prompt-skeleton and https://github.com/derhuerst/cli-styles), it really felt like a breeze.