Working with stream.WritableStreamDefaultController

Medium
0.0% Acceptance

In this lab, you will be working with Node's stream.WritableStreamDefaultController class. The objective of this lab is to understand and implement a writable stream with a Custom Stream Controller. You will be creating a CustomWritableStream class that extends stream.Writable and implements the stream.WritableStreamDefaultController. This will allow you to have more fine-grained control over how the stream consumes the incoming data.

The lab has various challenges where you will be asked to create and export different methods for the given tasks on the CustomWritableStream class. Remember to use ESM syntax for importing and exporting.

For this lab, knowing how to work with Node's Stream API is essential. Familiarize yourself with the concepts of streams, particularly writable streams, and the stream.WritableStreamDefaultController class from the Node.js documentation.