Stream API Lab

Medium
50.0% Acceptance

In this lab, you'll work with Node.js Stream API to create a Readable and Transform stream. You'll create a stream that emits numbers from 1 to 10, then transform the numbers to their squares, and finally pipe the output to a file named 'squares.txt'. Make sure to export the streamApi function which runs the whole process.