Closed 1N50MN14 closed 10 years ago
thanks! I published this as 0.1.0
just now. do you feel like adding a couple of integration tests to test.js
that make use of the new functionality so that we can catch regressions in the future? here are instructions for running the tests https://github.com/maxogden/filereader-stream#run-the-tests
Absolutely that's the plan! will finish my dinner here and send a PR on test.js in couple of hours
Hi Max,
I added the following: Events:
error
- triggered when FileReader encounters an error reading data from the file, emits errorend
- triggered when all chunks are successfully read and written, emits file.sizeprogress
- triggered upon each write, emit current offsetMethods:
pause
- pauses read / write, returns current offsetresume
- resumes read / writeabort
- aborts FileReader and ends/closes destination streamOptions:
offset
- optional offset option, very handy in case ofabort
Hope this looks ok to you