읽기 쉬운 스트림을 종료하는 방법(종료 전) Node.js에서 읽을 수 있는 스트림을 닫는 방법은 무엇입니까? var input = fs.createReadStream('lines.txt'); input.on('data', function(data) { // after closing the stream, this will not // be called again if (gotFirstLine) { // close this stream and continue the // instructions from this if console.log("Closed."); } }); 이것은 다음보다 더 나을 것입니다. input.on('data', function(data) { if (isEnded) { return; ..