next
Round
Technologies
Experiences
Contribute
Login
next
Round
Technologies
Experiences
Contribute
Login
Question Loading...
Event Loop
Buffers
Streams
Events
Time functions
Clusters
Crypto
Modules
Worker Threads
File Operations
Threads
Performance Optimisation
Websockets
All Topics
Create a readable stream
Here's how you can do it:
A readable stream is typically used to handle input, such as reading from a file or generating data programmatically. For example:
Readable streams can be consumed in three ways: using event listeners, the method, or async iterators. Here are examples: