July 2017
Intermediate to advanced
656 pages
16h 1m
English
The from2 module wraps the stream.Readable base constructor and creates the stream for us. It also adds some extra benefits, such as a destroy function to cleanly free up stream resources (across all Node versions) and the ability to perform asynchronous pushing (see the There's more... section for more).
The to2 module is actually an alias for the flush-write-stream module, which similarly supplies a destroy function (for all Node versions), and the ability to supply a function (the flush function), which supplies ...