{"_id":"pullstream","_rev":"38-3e647aa8ba4aac85cb310e49c8b0ef85","name":"pullstream","description":"A stream you can pull data from.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"pullstream","version":"0.0.1","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","devDependencies":{"nodeunit":"~0.7.4"},"dependencies":{"over":"~0.0.5","stream-buffers":"~0.2.3"},"_id":"pullstream@0.0.1","dist":{"shasum":"84b604d81ab4cf31de833d7e7caf90bda7a4719d","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.0.1.tgz","integrity":"sha512-CmxufYh5oQ/XWkMan45OlPWM3KDXZbEbab9A6nvyV5lm+aQ65B5N489eoe2afGqVfFgNYHwTP9HUoLI1gQVuRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWt2EfXnnTtpvYU5xAU79wz7lOY5lmBnJRakMjJ96HVAiEA2jTe5pHeEPBsJU303vWBYAVhj4+irL6PUAyB/E/LIZU="}]},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}],"directories":{}},"0.0.2":{"name":"pullstream","version":"0.0.2","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4"},"dependencies":{"over":"~0.0.5","stream-buffers":"~0.2.3"},"_id":"pullstream@0.0.2","dist":{"shasum":"d4207010290984b74ecd03d15ab9152d9a64dbf3","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.0.2.tgz","integrity":"sha512-0JYXcgAx2A1nTTFnLA5kKnFVbxC+iZOJWUbiXnHpdG3OySkJ8s77eIdoCI5OtX8uamQpdWTqH8UxV3wqixT3DA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDe3VtAIkqz3tzQSTy8gAIut3nsM/FuCfOBnb55hdo/zgIhANL5Qkr4Bq7GokXcm0DTa7iQXkTQkdMe+70Bg+b4rJJt"}]},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}]},"0.0.3":{"name":"pullstream","version":"0.0.3","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4"},"dependencies":{"over":"~0.0.5","stream-buffers":"~0.2.3"},"_id":"pullstream@0.0.3","dist":{"shasum":"b859c37a9bd4f042f115061ebe53dbc7c76d4ffc","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.0.3.tgz","integrity":"sha512-fHPjk2yQL5zw/J+k1E0PbXAwo08m6WjyIT4YsdHy7nTWiUDo64yd5mZFcrbjvUkNsusjg3nt0mI86VIcDOEq+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFkwmdvWa2EpL0ntQPrec25pzYArIYmF0P+ivpcC/QVzAiEAhYMihZIJicDM3z9ZQc9jqsxYRbxhMlCgfH5KMxY8E20="}]},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}]},"0.0.4":{"name":"pullstream","version":"0.0.4","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4"},"dependencies":{"over":"~0.0.5","stream-buffers":"~0.2.3"},"_id":"pullstream@0.0.4","dist":{"shasum":"41d83c446d290e2f2eb9b681d3f3b56fee88a0af","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.0.4.tgz","integrity":"sha512-ET1hQQRgJDXX03dJodIZ0EKCMRFiJb1hzTXBQJqt4A9H71UCRz2Pa3ZwJaPh18dqPU6O6oLailVtYjZP9DFoZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkyyEX7uhuPWgEmmJzYt6adZxlMIIVn2EylfhjE2kJ2QIhAPYAMXqWzkX0zdLojoM1ATNCF1UxeiSDpp6Qdex4MxIz"}]},"_npmVersion":"1.1.49","_npmUser":{"name":"joeferner","email":"joe@fernsroth.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}]},"0.0.5":{"name":"pullstream","version":"0.0.5","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4","stream-buffers":"~0.2.3","async":"~0.1.22"},"dependencies":{"over":"~0.0.5","readable-stream":"0.0.3"},"_id":"pullstream@0.0.5","dist":{"shasum":"2585335785ffb68092c8790f5e92e38c20ace1ba","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.0.5.tgz","integrity":"sha512-h4dHRGlCUSHlsZMSgg57+ZN54C1K9wZezPVJEcJtk3rgYq/U9cfkaRmkIM5I1Dvn+9O7FF4EGI2O9V3yQIxjDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFPyv/jZv1jOHvq+q9rKdBSXYCSDE6yNedmUakt81k4AiAup+msHxl3WehLvd8OBn3V94oVJhEDq56hYvdLf4tgXg=="}]},"_npmVersion":"1.1.49","_npmUser":{"name":"joeferner","email":"joe@fernsroth.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}]},"0.0.6":{"name":"pullstream","version":"0.0.6","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4","stream-buffers":"~0.2.3","async":"~0.1.22"},"dependencies":{"over":"~0.0.5","readable-stream":"~0.2.0","setimmediate":"~1.0.1"},"_id":"pullstream@0.0.6","dist":{"shasum":"73ad082b00e375c3f840a490a73542208ea57d66","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.0.6.tgz","integrity":"sha512-b13MMDRx2xbYvo5BfHfEattwMad9ds1FZ2yLZgnoCzdXsqcI5H1GpsrPsjMFLiOoelt3j2/hrsw9WBF/JtT54g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGooMzq6FGqZp/QCYkT6mZNW5d/6X7BaMfRnzzAqYKjtAiAIWwlVkpFz4h3PndqsLQnn0mZZDEWVbWxJUnSx3/lEkg=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}]},"0.1.0":{"name":"pullstream","version":"0.1.0","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4","stream-buffers":"~0.2.3","async":"~0.1.22"},"dependencies":{"over":"~0.0.5","readable-stream":"~0.2.0","setimmediate":"~1.0.1"},"_id":"pullstream@0.1.0","dist":{"shasum":"e6e44148213bb1543ac1c448d4da56e1788ce2dd","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.1.0.tgz","integrity":"sha512-sF1zK4mf5t64RJrs3hVK516Q/40VMu5XdpiaSNPiLZ8mkBUDv5RcOAPLnITBM+qqcu6D+s+/MNUH9MEH4X62pQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICtm5O2WqOeAe3l232FKBxoBAj4+ezYLQM9Pb8QCH/APAiAqN+3RUsTaSXxi1LAJkcngNm6AuXnCu7oCjRYA5iER6A=="}]},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}]},"0.2.0":{"name":"pullstream","version":"0.2.0","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4","stream-buffers":"~0.2.3","async":"~0.1.22"},"dependencies":{"over":"~0.0.5","until-stream":"~0.2.1","setimmediate":"~1.0.1"},"_id":"pullstream@0.2.0","dist":{"shasum":"eaa0f67884baa90fe6116c3cf56227b7d2b7cb86","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.2.0.tgz","integrity":"sha512-y0BY0JLmichxQ2CC4U5oZi5xAO3/wB7am/QH5LPGMVeB/bwXDrvnC5CTUx++mAnEQbOZ44Fkt2s1rCdiW6H6XA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAx3L76w75re5qYVU2HvS+mkmnu5xoye6BAattniPSQHAiAgD3Ubdw9Jq+2+L0fD984HfvGRssjjpe4GWp8liqWIaQ=="}]},"_from":".","_npmVersion":"1.2.12","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}]},"0.2.1":{"name":"pullstream","version":"0.2.1","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4","stream-buffers":"~0.2.3","async":"~0.1.22"},"dependencies":{"over":"~0.0.5","until-stream":"~0.2.1","setimmediate":"~1.0.1"},"_id":"pullstream@0.2.1","dist":{"shasum":"3e17d84a2242eadf8cb6dc29d5451c607ff36662","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.2.1.tgz","integrity":"sha512-V1bQadXQsI+OKV2Qe4phm5btUj+OshrFSMvLJP4VCi9DDbzG8QVVPqnRV2rzH5Z+pcdoe3+yU5SWEMSw253/pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7H/3Gpl5jtz08f8MFMjDV1+eI8BzJg6eUFP2iI+H7TAIhAMZn+mYgeFGvRsyd70tQRh1nAXh4AZ633u2p52ZUF3Wi"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}]},"0.2.2":{"name":"pullstream","version":"0.2.2","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4","stream-buffers":"~0.2.3","async":"~0.1.22"},"dependencies":{"over":"~0.0.5","until-stream":"~0.2.2","setimmediate":"~1.0.1","slice-stream":"0.0.0"},"_id":"pullstream@0.2.2","dist":{"shasum":"366ef1078b197e91d1be90766ddc61de82177591","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.2.2.tgz","integrity":"sha512-ydrExLzzAkY5T5zZvuFzHGmlzi/SCvtldmEt5CZ28uQhttm8A6n3Nhho4eOEY2O04NT3qPCQCQRUswE6b5tOQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWyNE2j3eGp/AV9YP6NqQyVXta0pyPhDP8VqQrhBY10gIhAL3pD7N2MPvHMCrSR4tJou3Q1KXdc+iqrN/BVMIEyfMS"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}]},"0.3.0":{"name":"pullstream","version":"0.3.0","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4","stream-buffers":"~0.2.3","async":"~0.1.22"},"dependencies":{"over":"~0.0.5","readable-stream":"~1.0.0","setimmediate":"~1.0.1","slice-stream":"0.0.0"},"_id":"pullstream@0.3.0","dist":{"shasum":"754fabc87cc56ebfa37be106ace31554789bb959","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.3.0.tgz","integrity":"sha512-KQKdIswPzZFSjwDpUIoNPqBYaAh2kOnR17VWROjo9ls6JsmlQs4BdLkCCrbuUCF1sxJL262Bl8/qu2VI/6P/lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHik1sDCWFMJfsrZEN2CoynExTXqhye132MXvW1pUNeuAiAOPdqdh+K6P64dFeOvWwJ0iLh1MMcSU+TSQiq/RpPN0A=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}]},"0.4.0":{"name":"pullstream","version":"0.4.0","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"./node_modules/.bin/nodeunit ./test/"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":"~0.7.4","stream-buffers":"~0.2.3","async":"~0.1.22"},"dependencies":{"over":"~0.0.5","readable-stream":"~1.0.0","setimmediate":"~1.0.1","slice-stream":"0.0.0"},"_id":"pullstream@0.4.0","dist":{"shasum":"919f15ef376433b331351f116565dc17c6fcda77","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.4.0.tgz","integrity":"sha512-Z4Cf9F7A9LWtPVlaqKD48/v38yIUXXkyZiy1Ei1ptR5pDZ0G6Pd6aWspB+2GNX5tTnftUDEWcnkbfEdQI8PINg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFlCep61BwUKonkkmkHGIDJoSKVoJ26k9yIFk1qJ422wIgeAKg+yfo2DvYxYYiqnfeg1FAQKyFXhu1XYms/jq0vI8="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}]},"0.4.1":{"name":"pullstream","version":"0.4.1","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"nodeunit test"},"license":"MIT","bugs":{"url":"https://github.com/nearinfinity/node-pullstream/issues"},"repository":{"type":"git","url":"https://github.com/nearinfinity/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"nodeunit":">= 0.9.0 < 1","stream-buffers":">= 0.2.6 < 1","async":">= 0.9.0 <"},"dependencies":{"over":">= 0.0.5 < 1","readable-stream":"~1.0.31","setimmediate":">= 1.0.2 < 2","slice-stream":">= 1.0.0 < 2"},"gitHead":"26d5da948c105c25fe85ae5598651c44c00a38f4","homepage":"https://github.com/nearinfinity/node-pullstream","_id":"pullstream@0.4.1","_shasum":"d6fb3bf5aed697e831150eb1002c25a3f8ae1314","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}],"dist":{"shasum":"d6fb3bf5aed697e831150eb1002c25a3f8ae1314","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-0.4.1.tgz","integrity":"sha512-8ckaufxE74rtbwA0lD0GO2Pk/miCfje3uZtGZd/MQpxkoRIBB004aKBnhdc4Y8L7sip0cis/ekib/1lUwUwxuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjqyACwZbsCga7Y/trwWfTod5VBnE/2n2tQAMlSNFUTAIgY1hmMVKOiUHosVmfc2espnSSdcZ+OOnjtUKBejNRAfk="}]}},"1.0.0":{"name":"pullstream","version":"1.0.0","description":"A stream you can pull data from.","main":"pullstream.js","scripts":{"test":"tap test"},"license":"MIT","bugs":{"url":"https://github.com/EvanOxfeld/node-pullstream/issues"},"repository":{"type":"git","url":"git+https://github.com/EvanOxfeld/node-pullstream.git"},"keywords":["stream","pull"],"devDependencies":{"stream-buffers":">= 0.2.6 < 1","async":">= 0.9.0 <","tap":"^1.4.1"},"dependencies":{"over":">= 0.0.5 < 1","readable-stream":"^2.0.2","slice-stream":">= 1.0.0 < 2"},"engines":{"node":">= 0.10.0"},"gitHead":"53345fae0653f41ff60bc56b18fa4a6775716cf0","homepage":"https://github.com/EvanOxfeld/node-pullstream#readme","_id":"pullstream@1.0.0","_shasum":"dfdfb5aa0b6844212e93baff050a9f4ece8c3b35","_from":".","_npmVersion":"3.3.4","_nodeVersion":"4.1.1","_npmUser":{"name":"evanoxfeld","email":"eoxfeld@gmail.com"},"dist":{"shasum":"dfdfb5aa0b6844212e93baff050a9f4ece8c3b35","tarball":"https://registry.npmjs.org/pullstream/-/pullstream-1.0.0.tgz","integrity":"sha512-8uaZ3FPvDovHyNfVp+8M7RV+DDLWK9O6YsVtrjPD1r4r1GW6PWzmEauq3paKOtD5MAeJvumPcVp/jqgBQNFP2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzh458o9fiBaNRCZuuJrkbxt/B87UM0lsh5A+K/1T1xgIhALwct/LkW47jxwnBLeIo8BTEycuYLlrl21WRSnzxmb+2"}]},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}]}},"readme":"pullstream [![Build Status](https://travis-ci.org/EvanOxfeld/node-pullstream.png)](https://travis-ci.org/EvanOxfeld/node-pullstream)\n==========\n\nTired of getting a firehose worth of data from your streams. This module is here to save the day. PullStream allows\nyou to pull data when you want and as much as you want.\n\n## Quick Examples\n\n```javascript\nvar PullStream = require('pullstream');\nvar fs = require('fs');\n\nvar ps = new PullStream();\nvar loremIpsumStream = fs.createReadStream('loremIpsum.txt');\nvar outputStream = fs.createWriteStream(path.join(__dirname, 'loremIpsum.out'));\n\nloremIpsumStream.pipe(ps);\n\n// pull 5 bytes\nps.pull(5, function(err, data) {\n console.log(data.toString('utf8'));\n\n //synchronously pull 1000 bytes or howevery many bytes are available\n var bytes = ps.pullUpTo(1000);\n\n // pipe the next 100 to a file\n ps.pipe(100, outputStream).on('end', function () {\n console.log('all done');\n });\n});\n```\n\n# API Index\n\n## PullStream\n * [pull](#pullStreamPull)\n * [pullUpTo](#pullStreamPullUpTo)\n * [pipe](#pullStreamPipe)\n * [drain](#pullStreamDrain)\n * [write](#pullStreamWrite)\n * [end](#pullStreamEnd)\n * [prepend](#pullStreamPrepend)\n\n# API Documentation\n\n\n## PullStream\n\n\n### ps.pull([number], callback)\n\nCalls a callback when the specified number of bytes are ready. If no number is specified pull will read until the end\nof the input stream.\n\n__Arguments__\n\n* number (optional) - Number of bytes to wait for. If not specified reads to the end of input stream.\n* callback(err, data) - Callback called when the bytes are ready. data is a buffer containing the bytes.\n\n__Example__\n\n```javascript\nvar ps = new PullStream();\n\nps.pull(5, function(err, data) {\n console.log(data.toString('utf8'));\n});\n```\n\n\n### ps.pullUpTo([number])\n\nSynchronously returns the specified number of bytes or however many bytes are available from the input stream. If no\nnumber is specified pullUpTo will return however many bytes are available from the input stream.\n\n__Arguments__\n\n* number (optional) - Number of bytes to read from the input stream.\n\n__Example__\n\n```javascript\nvar ps = new PullStream();\n\nvar data = ps.pullUpTo(1000);\nconsole.log(data.toString('utf8'));\n```\n\n\n### ps.pipe([number], destStream)\n\nPipes the specified number of bytes to destStream. If a number is not specified pipe will pipe the remainder\nof the input stream to destStream. Back-pressure is properly managed.\n\n__Arguments__\n\n* number (optional) - Number of bytes to pipe. If not specified pipe the rest of input stream.\n* destStream - The stream to pipe data to.\n\n__Returns__\n\nReturns destStream.\n\n__Example__\n\n```javascript\nvar ps = new PullStream();\nvar outputStream = fs.createWriteStream(path.join(__dirname, 'loremIpsum.out'));\n\nps.pipe(100, out).on('end', function() {\n console.log('done with pipe');\n});\n```\n\n\n### ps.drain(number, callback)\n\nConsume the specified number of bytes and send them to nowhere. Also drains from upstream as necessary if the specified\nnumber of bytes is less than the length of the pull stream's internal buffer.\n\n__Example__\n\n```javascript\nvar ps = new PullStream();\n\nps.drain(5, function(err) {\n console.log('5 bytes removed from pull stream');\n});\n```\n\n\n### ps.write(data, [encoding])\n\nWrites data to input side of a pull stream.\n\n__Arguments__\n\n* data - Buffer or string to write to the input side of the pull stream.\n* encoding (optional) - Encoding to use if data is a string. If not specified 'utf8' is used.\n\n__Example__\n\n```javascript\nvar ps = new PullStream();\n\nps.pull(5, function(err, data) {\n console.log(data.toString('ascii'));\n});\n\nps.write('Hello World', 'ascii');\n```\n\n\n### ps.end()\n\nManually ends a pull stream.\n\n__Example__\n\n```javascript\nvar ps = new PullStream();\n\nps.pull(5, function(err, data) {\n console.log(data.toString('utf8'));\n});\n\nps.write('Hello World');\nps.end();\n```\n\n\n### ps.prepend()\n\nWrites data to the front of the input side of a pull stream.\n\n__Example__\n\n```javascript\nvar ps = new PullStream();\n\nps.pull(11, function(err, data) {\n console.log(data.toString());\n});\n\nps.write('World');\nps.prepend('Hello ');\nps.end();\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 - 2013 Near Infinity Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"},{"name":"evanoxfeld","email":"eoxfeld@gmail.com"}],"time":{"modified":"2022-06-25T00:54:42.645Z","created":"2012-08-10T18:36:47.414Z","0.0.1":"2012-08-10T18:36:48.068Z","0.0.2":"2012-08-10T21:23:51.085Z","0.0.3":"2012-08-14T16:20:52.170Z","0.0.4":"2012-09-07T15:11:25.744Z","0.0.5":"2012-11-13T18:17:05.939Z","0.0.6":"2013-01-26T14:31:27.675Z","0.1.0":"2013-02-06T06:53:37.222Z","0.2.0":"2013-03-01T04:56:02.956Z","0.2.1":"2013-03-13T00:41:38.466Z","0.2.2":"2013-03-17T05:28:41.609Z","0.3.0":"2013-03-21T03:40:34.362Z","0.4.0":"2013-04-02T01:52:23.969Z","0.4.1":"2014-09-09T02:08:59.651Z","1.0.0":"2015-10-03T02:54:03.471Z"},"repository":{"type":"git","url":"git+https://github.com/EvanOxfeld/node-pullstream.git"},"keywords":["stream","pull"],"bugs":{"url":"https://github.com/EvanOxfeld/node-pullstream/issues"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/EvanOxfeld/node-pullstream#readme","users":{"roccomuso":true,"leix3041":true}}