Преглед изворни кода

Expose public variables on a stream instance.

Eugene Lazutkin пре 3 година
родитељ
комит
acc233dda3
1 измењених фајлова са 4 додато и 0 уклоњено
  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();
   }