fileliststream
Given a FileList, turn it into a FileListStream.
Uses filereader-stream to read the individual files in the FileList.
install
Use it with npm & browserify >= 3.0
$ npm install fileliststream
example
const FileListStream = ;const body = documentbody;const drop = ; // make it so console can be piped to.console { console }; ;
usage
options
can specify output
. Possible values are:
arraybuffer
[default]binary
dataurl
text
You can also specify chunkSize
, default is 8128
. This is how many bytes will be read and written at a time to the stream you get back for each file.
You can access the individual FileStream
s by index on the
FileListStream
instance, or directly through the files
property,
which is a true array.