title: Share fetch code between Node and Browser?
body: <p>I have a js module that parses a binary buffer of text and output a stream of events.
  I want to share this code between my backend node projects and the front end projects on the browser but the fetch implementation in node is slightly different than the browser.</p>
  <p>Is there a way to accomplish this?</p>
  <p>Should I instead look at creating a stream decoder like TextDecoderStream instead of the whole fetch wrapper?</p>
  <p>Unfortunatley the readable stream returned is also different: NodeJS.ReadableStream vs. ReadableStream</p>
  <p>Any suggestions without creating something custom?</p>