fromwhatwgreadablestream

1.0.3 • Public • Published

Make a Node Readable stream from a WhatWGStream

Example usage:

expressResponseStream = ...

fetch('https://....').then(response => {
  const stream = new FromWhatWGReadableStream({}, response.body);
  stream.pipe(expressResponseStream, {end:true});
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i fromwhatwgreadablestream

      Weekly Downloads

      2

      Version

      1.0.3

      License

      Apache-2.0

      Last publish

      Collaborators

      • kinlan