@kawaz/stream-bridge
Version:
A utility library that provides bidirectional conversion between Node.js streams and Web Stream API streams
5 lines (3 loc) • 643 B
JavaScript
import{Duplex as z,Readable as B,Transform as q,Writable as E}from"node:stream";function G(g){return B.toWeb(g)}function H(g){return E.toWeb(g)}function I(g){if(g instanceof q)return q.toWeb(g);return z.toWeb(g)}function J(g){return z.toWeb(g)}function K(g,k){return B.fromWeb(g,k)}function L(g,k){return E.fromWeb(g,k)}function M(g,k){return q.fromWeb(g,k)}function P(g,k){return z.fromWeb(g,k)}export{H as toWritableStream,L as toWritable,I as toTransformStream,M as toTransform,J as toReadableWritablePair,G as toReadableStream,K as toReadable,P as toDuplex};
//# debugId=D762F8788D4275AA64756E2164756E21
//# sourceMappingURL=index.js.map