node.js: readSync from stdin?

前端 未结 11 1572
北海茫月
北海茫月 2020-12-08 01:48

Is it possible to synchronously read from stdin in node.js? Because I\'m writing a brainfuck to JavaScript compiler in JavaScript (just for fun). Brainfuck supports a read o

11条回答
  •  忘掉有多难
    2020-12-08 02:38

    I found a library that should be able to accomplish what you need: https://github.com/anseki/readline-sync

提交回复
热议问题