node-web-streams
WhatWG web streams and conversion utilities for node.js
This provides the WhatWG streams API for node. It leverages the WhatWG reference implementation, but also addresses performance issues in that implementation.
Installation
npm install node-web-streams
Usage
// ES5 require syntaxvar webStreams = ;var ReadableStream = webStreamsReadableStream;var toWebReadableStream = webStreamstoWebReadableStream;var toNodeReadable = webStreamstoNodeReadable; // ES6 import syntax; // Convert a node Readable to a web ReadableStream & backconst nodeReadable = ;const webReadable = ;const roundTrippedNodeReadable = ;