18 Streams
If you want to get to the source, you have to swim against the current.—Hermann Hesse
When you work with Node.js, it’s hard to avoid coming across the stream application programming interface (API), and for good reason. Streams in Node.js can be used to solve numerous asynchronous problems in application development elegantly and with little effort. Node.js provides you with the framework implementation of the streams, so you only need to bother with the implementation details of your problem solution. This chapter introduces you to some tasks where streams can be useful. You’ll also learn how to create streams yourself and combine them in a useful way.
18.1 Introduction
“We should have some ways of connecting programs like garden ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access