In what scenarios would using object mode in streams be appropriate in Node.js?

  • When dealing with binary data
  • When processing large text files
  • When working with complex JavaScript objects
  • When reading from a database
Using object mode in streams is appropriate when you want to work with complex JavaScript objects as chunks, rather than raw binary or text data. It allows you to pass objects between streams without serialization. The other options do not typically require object mode.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *