Skip to content

Conversation

jscinoz
Copy link

@jscinoz jscinoz commented Nov 13, 2017

Add compatibility with the fake Blob objects created by blob-polyfill to allow the use of readable-blob-stream with NodeJS.

This is mainly useful for headless unit testing of browser code that uses Blob/FileReader.

@michaelkantor
Copy link

I'm investigating this use case as well. Scenario is having a JS library designed for web, but which has components that should be able to run on NodeJS.

@jimmywarting
Copy link

Using the FileReader is now discouraged, it's better to use the new promise based read methods on the blob itself .arrayBuffer(), .text(), .stream() instead...

it's a unified way to read any blob instances/polyfill without knowing any internal (private data/buffer)
NodeJs have buffer.Blob built in now, but they are not going to implement any FileReader for it - since there is no need for it.

Almost think this repo/package should be deprecated/archived...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants