code: function readableNodeToWeb(nodeStream) {
      return new ReadableStream({
          start(controller) {
              nodeStream.pause();
              nodeStream.on('data', chunk => {
                  controller.enqueue(chunk);
                  nodeStream.pause();
              });
              nodeStream.on('end', () => controller.close());
              nodeStream.on('error', (e) => controller.error(e));
          },
          pull(controller) {
              nodeStream.resume();
          },
          cancel(reason) {
              nodeStream.pause();
          }
      });
  }
docs: Web / node stream conversion functions