0
Node.js中是否有一個函數可以讀取流中的字符,直到它讀取完整的JavaScript表達式並返回該表達式爲止? read-eval-print循環的「read」部分?Node.js中的「讀取」REPL
我想從流中讀取JSON對象並在它們進來時處理它們。在本用例中,我不需要REPL的交互部分。
{"r": 0.0,
"e": -0.2,
"t": 0.98}
// callback happens here with the content of the object
{"r": 0.2,
"e": 0.0,
"t": 1.0}
// callback happens here with the content of the object
// etc