Переглянути джерело

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();
   }