Node.js 管道流 ES6 toString() 字符串String 方法 ES6 toLowerCase() 字符串String 方法 Node.js 管道流 var fs = require("fs"); // Create a readable stream var readerStream = fs.createReadStream('input.txt'); // Create a writable stream var writerStream = fs.createWriteStream('output.txt'); // Pipe the read and write operations // read input.txt and write data to output.txt readerStream.pipe(writerStream); console.log("Program Ended"); ES6 toString() 字符串String 方法 ES6 toLowerCase() 字符串String 方法