Friday, February 21, 2014

Text input into the console in Node.js

I have been trying to find out how text input from the console works in node.js. Apparently there is something called read line that does the trick. Here is the link: http://nodejs.org/api/readline.html. It is described in the Node.js manual. There are also methods to prompt users for input, as described in the Nodejitsu documents: http://docs.nodejitsu.com/articles/command-line/how-to-prompt-for-command-line-input.

No comments:

Post a Comment