Do you know what is buffer ?
Temporary storage spot for a chunk of data that can be transferred a small amount at a time
Buffer class is a global class that can be accessed in an application without importing the buffer module.
There ares some ways you can call buffer.
Do you now what is stream ?
Streams are objects that let you read data from a source or write data to a destination in continuous fashion.
There are four type of stream in node js
- Readable − Stream which is used for read operation.
- Writable − Stream which is used for write operation.
- Duplex − Stream which can be used for both read and write operation.
- Transform − A type of duplex stream where the output is computed based on input.
Do you knew this ‘Buffer’ & ‘Stream’ before ?