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) { function fromReadable(stream) {
let readable = wireUpReadableInterface(stream); let readable = wireUpReadableInterface(stream);
@ -171,3 +168,6 @@ function fromTransform(stream) {
buffer() buffer()
]); ]);
} }
module.exports.fromReadable = fromReadable;
module.exports.fromWritable = fromWritable;

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

Loading…
Cancel
Save