crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Node.js Streams
Question Posted on 01 Apr 2024Home >> Tutorial >> Node.js Tutorial >> Node.js Streams

Node.js Streams

Node.js Streams


When we say about the Node.js streams, well steams are the objects which helps you to read data from a source and write data to a destination. And below are the four types of streams in Node.js:-
  • (1) Readable:-This stream is mainly used for read operations.

  • (2)Writable:-This stream is mainly used for write operations.

  • (3)Duplex:-This stream can be used for both read and write operations.

  • (4)Transform:-Well we use this type of stream is duplex stream and where output is computed according to input.


Each type of stream is an Event emitter instance and throws several events at different times. Following are some commonly used events:
  • (1)Data:-This event is fired when there is data available to read.

  • (2)End:-This event is fired when there is no more data available to read.

  • (3)Error:-This event is fired when there is any error receiving or writing data.

  • (4)Finish:-This event is fired when all data has been flushed to underlying system.
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Parts of Node.js

Install Node.js Linux

Node.js First Example

Node.js Globals

Node.js DNS






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap