What is the primary difference between a Duplex stream and a Transform stream in Node.js?
-
A
Duplex has independent read and write sides; Transform derives its output directly from its input
-
B
Transform supports binary data while Duplex supports only text
-
C
Duplex streams are faster; Transform streams include built-in error handling
-
D
There is no practical difference โ they are fully interchangeable