I think ipfs-js changed how ipfs.files.cat works, now this method returns a buffer instead of a stream, so needs to convert to stream to pipe.
I added a method called buf2Stream that do this conversion.
I tested on Chrome(macOs) and worked perfectly.
I think ipfs-js changed how ipfs.files.cat works, now this method returns a buffer instead of a stream, so needs to convert to stream to pipe. I added a method called buf2Stream that do this conversion. I tested on Chrome(macOs) and worked perfectly.