I am taking file input from user as
<input type="file"/>
It returns file object has Blob. This object has a method .stream()
which returns ReadableStream
. Now, i want to pass this stream to stream-json library. But it takes NodeJS native stream - Readable
.
Now, how do i convert the ReadableStream
(webstream) to Readable
(node stream) ?