June 2014
Intermediate to advanced
696 pages
38h 52m
English
An important module in Node.js is the Stream module. Data streams are memory structures that are readable, writable, or both. Streams are used all over in Node.js, when accessing files, when reading data from HTTP requests, and in several other areas. This section covers using the Stream module to create streams as well as to read and write data from them.
The purpose of streams is to provide a common mechanism to transfer data from one location to another. They also expose events such as data when data is available to be read, error when an error occurs, and so forth so that you can register listeners to handle the data when it becomes available in a stream or is ready to be written to.
Streams are commonly ...
Read now
Unlock full access