Browse Source

Add fromReadable/fromWritable methods

master
Sven Slootweg 2 months ago
parent
commit
014420bf34
  1. 6
      index.js
  2. 1
      src/create-defer.js

6
index.js

@ -49,9 +49,6 @@ module.exports = function convert(stream) {
}
};
// FIXME: Duplex APIs
function fromReadable(stream) {
let readable = wireUpReadableInterface(stream);
@ -171,3 +168,6 @@ function fromTransform(stream) {
buffer()
]);
}
module.exports.fromReadable = fromReadable;
module.exports.fromWritable = fromWritable;

1
src/create-defer.js

@ -1,5 +1,6 @@
"use strict";
// FIXME: Can we use p-defer here instead?
module.exports = function createDefer() {
let resolveFunc, rejectFunc;

Loading…
Cancel
Save