A stream is an abstract interface for working with streaming data in Node.js. The stream module provides a base API that makes it easy to build objects that implement the stream interface.
In NodeJs Stream use for the following ways :
HTTP request & responses
Standard input/output(stdin & stdout)
File reads and write
Buffer :
Node.js provides Buffer class which provides instances to store raw data.
We can create a Buffer in the following way:
let bufferOne = new Buffer(10);
let bufferTwo = new Buffer([10, 20, 30, 40, 50]);
let bufferThree = new Buffer('Simply Easy Learning');
@sagarchavadaJun 17.2019 — #Yea @VITSUSA#1604173 i show this video and it is very helpful to know about the buffer and stream in nodejs @retrosec088#1599727 .
@james19millerJul 04.2019 — #NodeJS is a great and easy way to build applications, many NodeJS Development Companies use this technology to build great apps.
Want some info on nodeJS check it's website.
reply?
×
Success!
Help @retrosec088 spread the word by sharing this article on Twitter...