{"_id":"filereader-stream","_rev":"4210970","name":"filereader-stream","description":"Read an HTML5 File object (from e.g. HTML5 drag and drops) as a stream.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"brianloveswords","email":""},{"name":"jekrb","email":"Jacob.JW.Burden@gmail.com"},{"name":"maxogden","email":""}],"time":{"modified":"2026-03-04T17:05:53.000Z","created":"2013-12-20T01:23:31.004Z","2.0.0":"2018-05-03T17:52:08.554Z","1.0.0":"2015-11-01T17:58:38.421Z","0.2.0":"2014-12-11T19:55:33.850Z","0.1.1":"2014-04-16T16:03:49.608Z","0.1.0":"2014-02-21T20:30:53.126Z","0.0.1":"2013-12-20T01:23:31.004Z"},"users":{},"author":{"name":"max ogden"},"repository":{"type":"git","url":"git+https://github.com/maxogden/filereader-stream.git"},"versions":{"2.0.0":{"name":"filereader-stream","version":"2.0.0","description":"Read an HTML5 File object (from e.g. HTML5 drag and drops) as a stream.","main":"index.js","scripts":{"test":"standard && wzrd test.js"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git+https://github.com/maxogden/filereader-stream.git"},"bugs":{"url":"https://github.com/maxogden/filereader-stream/issues"},"homepage":"https://github.com/maxogden/filereader-stream","dependencies":{"from2":"^2.1.0","typedarray-to-buffer":"^3.0.4"},"devDependencies":{"browserify":"~3.11.0","drag-and-drop-files":"~0.0.1","standard":"^5.3.1","tape":"~2.3.2","through2":"^2.0.0","wzrd":"^1.3.1"},"gitHead":"b4afe4dbfda4591a236ce508d6021b8e94abac33","_id":"filereader-stream@2.0.0","_shasum":"b30d5a5bf6d14c638d7eb55e193abb986f8048a1","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.1.0","_npmUser":{"name":"jekrb","email":"jake@doge.haus"},"dist":{"shasum":"b30d5a5bf6d14c638d7eb55e193abb986f8048a1","size":2658,"noattachment":false,"key":"/filereader-stream/-/filereader-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filereader-stream/download/filereader-stream-2.0.0.tgz"},"maintainers":[{"name":"brianloveswords","email":""},{"name":"jekrb","email":"Jacob.JW.Burden@gmail.com"},{"name":"maxogden","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filereader-stream_2.0.0_1525369928369_0.6947348471522632"},"_hasShrinkwrap":false,"publish_time":1525369928554,"_cnpm_publish_time":1525369928554,"_cnpmcore_publish_time":"2021-12-16T18:28:28.294Z"},"1.0.0":{"name":"filereader-stream","version":"1.0.0","description":"Read an HTML5 File object (from e.g. HTML5 drag and drops) as a stream.","main":"index.js","scripts":{"test":"standard && wzrd test.js"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git+https://github.com/maxogden/filereader-stream.git"},"bugs":{"url":"https://github.com/maxogden/filereader-stream/issues"},"homepage":"https://github.com/maxogden/filereader-stream","dependencies":{"from2":"^2.1.0","typedarray-to-buffer":"^3.0.4"},"devDependencies":{"browserify":"~3.11.0","drag-and-drop-files":"~0.0.1","standard":"^5.3.1","tape":"~2.3.2","through2":"^2.0.0","wzrd":"^1.3.1"},"gitHead":"4eca93de4334e79d7ac64e781b607b6b2b5b6a4a","_id":"filereader-stream@1.0.0","_shasum":"25e1728b1b4bd2b041a1ad005ccd1c6a22b43f3c","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"dist":{"shasum":"25e1728b1b4bd2b041a1ad005ccd1c6a22b43f3c","size":2687,"noattachment":false,"key":"/filereader-stream/-/filereader-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filereader-stream/download/filereader-stream-1.0.0.tgz"},"maintainers":[{"name":"brianloveswords","email":""},{"name":"jekrb","email":"Jacob.JW.Burden@gmail.com"},{"name":"maxogden","email":""}],"directories":{},"publish_time":1446400718421,"_hasShrinkwrap":false,"_cnpm_publish_time":1446400718421,"_cnpmcore_publish_time":"2021-12-16T18:28:28.493Z"},"0.2.0":{"name":"filereader-stream","version":"0.2.0","description":"Read an HTML5 File object (from e.g. HTML5 drag and drops) as a stream.","main":"index.js","scripts":{"test":"beefy test.js"},"author":{"name":"max ogden"},"license":"BSD 2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/filereader-stream.git"},"bugs":{"url":"https://github.com/maxogden/filereader-stream/issues"},"homepage":"https://github.com/maxogden/filereader-stream","devDependencies":{"drag-and-drop-files":"~0.0.1","concat-stream":"~1.2.1","tape":"~2.3.2","browserify":"~3.11.0","beefy":"~0.6.0"},"dependencies":{"inherits":"1.0.0"},"gitHead":"caba0be3f7234760d285748eb13413fafee08b2e","_id":"filereader-stream@0.2.0","_shasum":"16374a202715b640b666ecffd07089938e9ff11f","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.28","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"brianloveswords","email":""},{"name":"jekrb","email":"Jacob.JW.Burden@gmail.com"},{"name":"maxogden","email":""}],"dist":{"shasum":"16374a202715b640b666ecffd07089938e9ff11f","size":3247,"noattachment":false,"key":"/filereader-stream/-/filereader-stream-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filereader-stream/download/filereader-stream-0.2.0.tgz"},"directories":{},"publish_time":1418327733850,"_hasShrinkwrap":false,"_cnpm_publish_time":1418327733850,"_cnpmcore_publish_time":"2021-12-16T18:28:28.690Z"},"0.1.1":{"name":"filereader-stream","version":"0.1.1","description":"Read an HTML5 File object (from e.g. HTML5 drag and drops) as a stream.","main":"index.js","scripts":{"test":"beefy test.js"},"author":{"name":"max ogden"},"license":"BSD 2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/filereader-stream.git"},"bugs":{"url":"https://github.com/maxogden/filereader-stream/issues"},"homepage":"https://github.com/maxogden/filereader-stream","devDependencies":{"drag-and-drop-files":"~0.0.1","concat-stream":"~1.2.1","tape":"~2.3.2","browserify":"~3.11.0","beefy":"~0.6.0"},"dependencies":{"inherits":"1.0.0"},"_id":"filereader-stream@0.1.1","dist":{"shasum":"ff797b3c5c7890e6e8d88a910a10107a6f3bfe08","size":3247,"noattachment":false,"key":"/filereader-stream/-/filereader-stream-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/filereader-stream/download/filereader-stream-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"brianloveswords","email":""},{"name":"jekrb","email":"Jacob.JW.Burden@gmail.com"},{"name":"maxogden","email":""}],"directories":{},"publish_time":1397664229608,"_hasShrinkwrap":false,"_cnpm_publish_time":1397664229608,"_cnpmcore_publish_time":"2021-12-16T18:28:28.946Z"},"0.1.0":{"name":"filereader-stream","version":"0.1.0","description":"Read an HTML5 File object (from e.g. HTML5 drag and drops) as a stream.","main":"index.js","scripts":{"test":"beefy test.js"},"author":{"name":"max ogden"},"license":"BSD 2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/filereader-stream.git"},"bugs":{"url":"https://github.com/maxogden/filereader-stream/issues"},"homepage":"https://github.com/maxogden/filereader-stream","devDependencies":{"drag-and-drop-files":"~0.0.1","concat-stream":"~1.2.1","tape":"~2.3.2","browserify":"~3.11.0","beefy":"~0.6.0"},"dependencies":{"inherits":"1.0.0"},"_id":"filereader-stream@0.1.0","dist":{"shasum":"0dc885e171d1d33aa931752dacaf2be3b2e09eed","size":3007,"noattachment":false,"key":"/filereader-stream/-/filereader-stream-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filereader-stream/download/filereader-stream-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"brianloveswords","email":""},{"name":"jekrb","email":"Jacob.JW.Burden@gmail.com"},{"name":"maxogden","email":""}],"directories":{},"publish_time":1393014653126,"_hasShrinkwrap":false,"_cnpm_publish_time":1393014653126,"_cnpmcore_publish_time":"2021-12-16T18:28:29.165Z"},"0.0.1":{"name":"filereader-stream","version":"0.0.1","description":"Read an HTML5 File object (from e.g. HTML5 drag and drops) as a stream.","main":"index.js","scripts":{"start":"beefy test.js"},"author":{"name":"max ogden"},"license":"BSD 2-Clause","repository":{"type":"git","url":"https://github.com/maxogden/filereader-stream.git"},"bugs":{"url":"https://github.com/maxogden/filereader-stream/issues"},"homepage":"https://github.com/maxogden/filereader-stream","devDependencies":{"drag-and-drop-files":"~0.0.1","concat-stream":"~1.2.1","tape":"~2.3.2","browserify":"~3.11.0","beefy":"~0.6.0"},"readmeFilename":"readme.md","_id":"filereader-stream@0.0.1","dist":{"shasum":"7a6e8641d594cbdcec5516809749ad83247d7051","size":2689,"noattachment":false,"key":"/filereader-stream/-/filereader-stream-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/filereader-stream/download/filereader-stream-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"brianloveswords","email":""},{"name":"jekrb","email":"Jacob.JW.Burden@gmail.com"},{"name":"maxogden","email":""}],"directories":{},"publish_time":1387502611004,"_hasShrinkwrap":false,"_cnpm_publish_time":1387502611004,"_cnpmcore_publish_time":"2021-12-16T18:28:29.391Z"}},"readme":"# filereader-stream\n\nGiven an HTML5 File object (from e.g. HTML5 drag and drops), turn it into a readable stream.\n\n\n# install\n\nUse it with npm & [browserify](/substack/node-browserify)\n\n```bash\n$ npm install filereader-stream\n```\n\n# example\n```js\nvar drop = require('drag-and-drop-files')\nvar concat = require('concat-stream')\nvar fileReaderStream = require('filereader-stream')\n\ntest('should read file when one is dropped', function(t) {\n  drop(document.body, function(files) {\n    var first = files[0]\n    fileReaderStream(first).pipe(concat(function(contents) {\n      // contents is the contents of the entire file\n    }))\n  })\n})\n```\n\n# usage\n\n```js\nvar fileReaderStream = require('filereader-stream')\nvar readStream = fileReaderStream(file, [options])\n```\n\n`fileReaderStream` is a Streams 2 Readable Stream, so you can do all the streamy things with it like `.pipe` etc.\n\n`options`:\n\n* `chunkSize` - default `1024 * 1024` (1MB) - How many bytes will be read at a time\n* `offset` - default `0` - Where in the file to start reading\n\n# run the tests\n\n```\nnpm install\nnpm test\n```\n\nthen 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\n","_attachments":{},"homepage":"https://github.com/maxogden/filereader-stream","bugs":{"url":"https://github.com/maxogden/filereader-stream/issues"},"license":"BSD-2-Clause"}