Add fromReadable/fromWritable methods

master
Sven Slootweg 3 years ago
parent e0ac20bcf0
commit 014420bf34

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

Loading…
Cancel
Save