7

I've just realised, after a couple years of node.js I still don't know how to get command line input.

Comments
  • 1
    Readline, in most higher level abstractions :)
  • 1
    Fuck, I realized this too just yesterday

    And apparently the standard Node way of doing it is creating like a bunch of callbacks which will either be multiple lines or be fucking unreadable
  • 1
    @nururururu The node STL doesn't use promises, and blocking the thread isn't an option, so this is what's left.
Add Comment