开发者

How to receive simple one-line user input with nodeJS?

开发者 https://www.devze.com 2023-03-27 06:49 出处:网络
I want to run a nodeJS application with my own very simple console, so my question is how can I achieve it in a straightfor开发者_开发问答ward way (typical of any programming language).

I want to run a nodeJS application with my own very simple console, so my question is how can I achieve it in a straightfor开发者_开发问答ward way (typical of any programming language).

I've seen articles like How To Read User Input With NodeJS but I am not sure if there is a simple way already included.


It looks unfinished, but it appears NodeJS does have a simpler way with its Readline library in version 5.3.

Other than that, I think the article you linked to covers the basics pretty well.

0

精彩评论

暂无评论...
验证码 换一张
取 消