Node Js Streams
Node Js Streams
js - Streams
bharatsewani1993
What are Streams?
Streams are collections of data — just like
arrays or strings. The difference is that
streams might not be available all at once,
bharatsewani1993
there are four types of streams:
Readable − Stream which is used for read
operation.
bharatsewani1993
Reading from a Stream:
bharatsewani1993
Reading from a Stream example:
bharatsewani1993
Writing to a Stream:
bharatsewani1993
Writing to a Stream output:
bharatsewani1993
Piping the Streams:
Piping is a mechanism where we provide the
output of one stream as the input to another
bharatsewani1993
Piping the Streams example:
bharatsewani1993
Chaining the Streams
Chaining is a mechanism to connect the output of
one stream to another stream and create a chain
bharatsewani1993
Chaining the Streams example:
bharatsewani1993
Like
Save
Share
bharatsewani1993