pull-file-reader
Given an HTML5 File object (from e.g. HTML5 drag and drops), turn it into a pull stream source.
Heavily based on filereader-stream by @maxogden.
install
Use it with npm & browserify
npm install pull-file-reader
example
var drop = var pull = var fileReader =
usage
var fileReader = var source =
fileReader
is a pull stream source.
options
:
chunkSize
- default1024 * 1024
(1MB) - How many bytes will be read at a timeoffset
- default0
- Where in the file to start reading
run the tests
npm install
npm 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
A (╯°□°)╯︵TABLEFLIP side project.