Quellcode durchsuchen

Expose public variables on a stream instance.

Eugene Lazutkin vor 3 Jahren
Ursprung
Commit
acc233dda3
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      src/index.js

+ 4 - 0
src/index.js

@@ -152,6 +152,10 @@ const chain = (fns, options) => {
       read: readMethod
     })
   );
+  stream.streams = streams;
+  stream.input = input;
+  stream.output = output;
+
   if (!isReadableNodeStream(output)) {
     stream.resume();
   }