Sample code for Read transform and write operations on file with Node using stream and Transform object with pipe Use below command to run node logparser.js --input ./app.log --output ./errors.json