{"_id":"filereader-stream","_rev":"20-3dfdf103995da87c814066c2d8a7c963","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"},"versions":{"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"},"_id":"filereader-stream@0.0.1","dist":{"shasum":"7a6e8641d594cbdcec5516809749ad83247d7051","tarball":"https://registry.npmjs.org/filereader-stream/-/filereader-stream-0.0.1.tgz","integrity":"sha512-YZc3c49fyqH2/6SID9G+AaJMUM0gWGLXqADefdRJ8HJvNgdP83x2RrDYgrsRECM9nJ7AromDFWE64z9VvZDYhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNKBazWcr6Brg+iHCm1ux660JpF+/5Nb6/uPeMo2NCAwIgQH3LZJWbKGYr82AhAC0n7fxxhmyM/1QhntTP3hVUDtA="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/filereader-stream/-/filereader-stream-0.1.0.tgz","integrity":"sha512-/Ov9qBbcdEyPu9/42yRw+tb1qUpcNS5M54JCEShDuvSBi+v+n0WkLjzaEOLJUZTJ2xde2wRQv7PHZxL4E354AA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHgYA8h9MHOvveC+VRJizjwDe1pQEuQpRXR/KKbKufAOAiBCG8Ul8Y3yUotm7eBh2myugrcKTHxsVVhQdw2tvUXnWQ=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"},{"name":"brianloveswords","email":"brianloveswords@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/filereader-stream/-/filereader-stream-0.1.1.tgz","integrity":"sha512-KraGRcmdHsGY1hooafIJ6oeGRKOu2VEpXiXBmO/cjQgPEyWMbPYOzft0gylE9H5s6r/me879YfEJ9fe3fodQGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuhYfE9dVIbtnQ5dYFYwb1HMUDGRhOxYnUwKRTcElFoAiBlVGnR5n2C3y/j5ESxSuTEq8csXQlUnl6WrNY9KVXcJA=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"},{"name":"brianloveswords","email":"brianloveswords@gmail.com"}],"directories":{}},"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":"maxogden","email":"mogden@gmail.com"},{"name":"brianloveswords","email":"brianloveswords@gmail.com"}],"dist":{"shasum":"16374a202715b640b666ecffd07089938e9ff11f","tarball":"https://registry.npmjs.org/filereader-stream/-/filereader-stream-0.2.0.tgz","integrity":"sha512-4VIFXppZFLjx3Dz9GSVPh4MdC2iPQDgr6rksO2EcSou7lUOIQZ0FsoaTCeWp/k5VTs8bZKBUAjOny/oavvzumQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDR4GloYDoSvAXTFd6DDIzFFV8t7Ix1hMWEL+zgN/UDAIhAJIeZV1z18BZs8o1LAfGEwObFHW1ny9FXR7g3ZEEmql1"}]},"directories":{}},"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","tarball":"https://registry.npmjs.org/filereader-stream/-/filereader-stream-1.0.0.tgz","integrity":"sha512-3QUEJ1Y/Y2NlXZkDjOs6HuZg0uQXwUTukonHSNkVEdMcvAsLsRyf+JGR5rJSD9cJ1NM0wGXoDYQvOmYu1j7f3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICxKtFbdcDghPdwqgm22JK5+sWfnrVCDf1m34fhtNyiDAiEA/wpf8xNeiyhTGUj4h/yxQK4zVc8mXsZLuqgg7n/2teM="}]},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"},{"name":"brianloveswords","email":"brianloveswords@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/filereader-stream/-/filereader-stream-2.0.0.tgz","fileCount":7,"unpackedSize":5316,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa60xICRA9TVsSAnZWagAA/wcP/j/Ap8zg/8+svIe01JjF\ngDWFrhe9yU94WSq5de296xOD3KpM3+dJmJ7ntnNt+Zjtmdk0Q+r+SYiFLLfT\nUm4CFWS5Vm0ok2xCIOqmp9jkVClPpPr2WGiBkHjHhnhMO5REThjMy3vml4ef\nl3wlO7UsxfODl2if08RJrvEtjJl74czle4vfy8RwcnGHEWl1w1bw+s7oQqwG\nPgEQ6RP99Q0MlY9MRfp99EHad2sa5n9GaXxUkaADvUG/bOjMAfMhqxFlGhr7\nwUyRIuJDy5QoDqsCJqbEGSeImhlqlbtRR08qed4W1R4hsC+LhLtXpBJzQayL\nkShEnAwg6SJYjCx94Tyuw7xWYX/nDAypNGfXWEk1Jye6W29hrdnKqlAWeAD9\n/mkja7yHuFyD7P5jNUyebMTo5j3zQD8jK9hU3xEXVthMxqjO4QQ9cWp8qlxG\nK8exbIZmAsIzXht676eOXizQW6KNdZdaWSMWUwdJorCF3DoyyYOaFVyEF6Ft\nsFkUkFN9XYGlW9rHeDAG/XWxU9P0GDdBFtA0zUUq622m6RApPeINCiNj0kAK\nJI3pUvjhh308+3zu1aKiFbbJbLBXOvJjTLLrYxkv5QF3GasUESXPHnnNE2tA\nNgJimuEHppg3EbxSuYZsy4TaKTU8co9MQReJRp6bja2Ij0c8P7m4GeFWgYXO\nVg8J\r\n=2h++\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-U1OzPNA5quv2/ejRikN/G8llfdtHpblOuKNgxooVjbr/i9uEJ/QIQ7eslx/RqHRJVuTqwr6v5/XG87935t/daA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEY9g79zP3LAHuzFTD6ZRu5HONPSBXPIayMJFn4fauEmAiEAhwgj0gZWafPDNmpHa6mtFIuKw/ICM4CdgXWKB1LOQpE="}]},"maintainers":[{"email":"brianloveswords@gmail.com","name":"brianloveswords"},{"email":"jake@doge.haus","name":"jekrb"},{"email":"max@maxogden.com","name":"maxogden"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filereader-stream_2.0.0_1525369928369_0.6947348471522632"},"_hasShrinkwrap":false}},"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","maintainers":[{"email":"brianloveswords@gmail.com","name":"brianloveswords"},{"email":"jake@doge.haus","name":"jekrb"},{"email":"max@maxogden.com","name":"maxogden"}],"time":{"modified":"2022-06-18T00:44:29.116Z","created":"2013-12-20T01:23:31.004Z","0.0.1":"2013-12-20T01:23:31.004Z","0.1.0":"2014-02-21T20:30:53.126Z","0.1.1":"2014-04-16T16:03:49.608Z","0.2.0":"2014-12-11T19:55:33.850Z","1.0.0":"2015-11-01T17:58:38.421Z","2.0.0":"2018-05-03T17:52:08.554Z"},"readmeFilename":"readme.md","homepage":"https://github.com/maxogden/filereader-stream","repository":{"type":"git","url":"git+https://github.com/maxogden/filereader-stream.git"},"author":{"name":"max ogden"},"bugs":{"url":"https://github.com/maxogden/filereader-stream/issues"},"license":"BSD-2-Clause","users":{"tmpvar":true,"tunnckocore":true,"h02e56":true,"meandave":true,"nichoth":true}}