Read an HTML5 File object (from e.g. HTML5 drag and drops) as a stream.
Given an HTML5 File object (from e.g. HTML5 drag and drops), turn it into a readable stream.
Use it with npm & browserify
$ npm install filereader-stream
var drop =var concat =var fileReaderStream =
var fileReaderStream =var readStream =
fileReaderStream is a Streams 2 Readable Stream, so you can do all the streamy things with it like
1024 * 1024(1MB) - How many bytes will be read at a time
0- Where in the file to start reading
npm installnpm test
then open your browser to the address provided, open your JS console, and drag and drop files onto the page until the test suite passes/fails