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.