{"_id":"readable-to-readable","_rev":"6-78eb189d597550d832299140b0c3b324","name":"readable-to-readable","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.1":{"name":"readable-to-readable","version":"0.0.1","description":"Forwards the data of one Readable to another Readable","main":"index.js","scripts":{"test":"standard && jest"},"repository":{"type":"git","url":"git://github.com/bergos/readable-to-readable.git"},"keywords":["readable","stream"],"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"license":"MIT","bugs":{"url":"https://github.com/bergos/readable-to-readable/issues"},"homepage":"https://github.com/bergos/readable-to-readable","dependencies":{},"devDependencies":{"jest":"^24.5.0","readable-stream":"^3.2.0","standard":"^12.0.1"},"gitHead":"9782414d9c7a2e56727d1d17ab7867b04dde2396","_id":"readable-to-readable@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"dist":{"integrity":"sha512-IjeXlDoUYVA4xmkbVf4aV8ckXylhO2tmnIX4X5AxBCmQoWUjbgyENavq68fqAlf3rveohs+BhanN+80x//RfBA==","shasum":"9f96a1cd002b7b9c7c642e87effe44835bee4c91","tarball":"https://registry.npmjs.org/readable-to-readable/-/readable-to-readable-0.0.1.tgz","fileCount":7,"unpackedSize":9094,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcms0lCRA9TVsSAnZWagAA7rIQAJD10r2xUeDW5dg4LngN\nW0dFzXYfWBMhMH2ReAeF6E+yWCo2h8C1t8Tq6QMrdouJ8SZtwqvjMSThkjj+\n3kX5OWfgeof/lrLHktqtJRGRhviFQYp6aV29THv6csKEbMSmmFtKCd1olqHw\n8zAXEmfa/PPOei2m8yhYOfjS6IX5aYcAsV8N0U+g12Ktd3ExYxR1+1mfCJWb\nhCCORvs49fiWc5Lw2IWqdRqU6WPTfMATneRBnDG1I9iwoeoVnMvLQlEMD9S6\nXUPCsPmQ4Jbr4EMaz3wDQdfohpobFEQv22gJRltZrdWXh8Kz9CtJ0Qkz15oi\nbt0odEAvvZw0wcSiOGBgTWkPChj0WrIkUOP8qzgiUfxYhimG2+PpzK4vWHIh\nsFbeXHuAiMAnrfXTXmDclAIsQBHbJC8SWvBNBQ7BFF0SP8lChLsaD4wz8zYt\nGWgaevmhugBlKDEaKFh0RrF/p2GDc9rSTMgcqi1mksANriXvC8DZfl8bFTwh\nyZwNBkpm2VLQTbLzUV9dfrMXfpYjH6E3e6XygWwaBfRyu4+/bn6iFRypEvdG\nOiHML5ad7F/qDxQq3ogxqhAyAcwhKmSAgZHbNI+CPvDr8NlGZ1bKl8j6UvCP\n8sGchKjChL8hMkKWjK1ipZ0yj9YToxUK3wD1eLWTjCjZ7FHYFbM3nfRMYBQW\nNTnp\r\n=owLz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3snDMJcGARwWFqcm+RuxgiFX03KwcX05mRKvgpMQ2SAiEA51/1hR0WQzgLC8HfKPNeFJ0bhe6UGsY9AbjJymmCJ40="}]},"maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readable-to-readable_0.0.1_1553648933022_0.5416675893487082"},"_hasShrinkwrap":false,"deprecated":"This package is no longer maintained"},"0.1.0":{"name":"readable-to-readable","version":"0.1.0","description":"Forwards the data of one Readable to another Readable","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git://github.com/bergos/readable-to-readable.git"},"keywords":["readable","stream"],"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"license":"MIT","bugs":{"url":"https://github.com/bergos/readable-to-readable/issues"},"homepage":"https://github.com/bergos/readable-to-readable","dependencies":{"readable-stream":"^3.6.0"},"devDependencies":{"get-stream":"^5.1.0","mocha":"^7.1.1","standard":"^14.3.3"},"gitHead":"fff8f39c8d9be97aaa9e48402b67aff29f493043","_id":"readable-to-readable@0.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"dist":{"integrity":"sha512-iI5qb0CDVRUW7D7gRthd5AHJjgx/x4EsZkB8T9zqbbT9eIWfvV0UnlE2n9b/fM9Ok7HY67dNmlXZL1yh7EE2mA==","shasum":"40b4d3e9d060fd8bc25d3c7ca462b7b71319cc20","tarball":"https://registry.npmjs.org/readable-to-readable/-/readable-to-readable-0.1.0.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegmqsCRA9TVsSAnZWagAA1M4P/RnYxhKeDD6a6qV0pokH\nYwDKRFBpk6AWR6EVvQoQ+q4D4MpiSMP+FQbozfdocnkxQI9uczUrl3qRsmic\n3Ek+9tTDRJ5/pL8rY6IvD6IRyUPoS5elwEn4yI7kZ/r1jq0zP+6xszohPdw9\n+8rvdbIZjFEbKMNorad62czdIik16SMg5kLl0inrLrnoYAsZvuUZbfwN9TUa\nO1/xfXHK1FN3/hExqglPWLD7EKjjz6JGbPFdgD3YdtArlmfX3IF4CSsFCK9i\n9pUnOXeUp7o1mb9WVBIg9WAa1Do1wExtuehaC0PP44pdI91p9iy+mdcV93ie\nr5RBSX3Xylulsc/1rcjoIQ/WRdieIuGFh9DFB4KG+bLChRWcdmTzViLeZxYG\nSJ0HZrumcf5+jFQmicha5ELgtFXYN9afOz0m8mQYrK15T7gy4Agv2UkVtqBb\nVml4chOwZYF3ExOWPrZ5Cahc7O/gLYCv9q8JZS+OGEEzZKXsiceFutjp9Z7W\nhM4Ip4OTgsXHSSER2e6d6N+HODIPkZgCgVwZoDsa9WBmCwVv2C96bLwKWpKz\nFyCcd1l13DvN8rJ73uoUudCGZBNMAASV2ThSwD0E4ehdhlfQIploFmLPLFee\nHWjrq7kXsAosjsLAfsKNbCh0uiItKDA3A2XFYMpoS5VJK4RUqXpQUdLW/V9H\nmpvP\r\n=aZCH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwIARnNYc/8Fx+sGk0qmxJbtUaO9YhvVHLLpPGEv5WBAiEAgfHJjvTxRZ7+cdXbdkJga5w2weWMY8QOH8tyvzqece8="}]},"maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readable-to-readable_0.1.0_1585605292553_0.7087857517060627"},"_hasShrinkwrap":false,"deprecated":"This package is no longer maintained"},"0.1.1":{"name":"readable-to-readable","version":"0.1.1","description":"Forwards the data of one Readable to another Readable","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git://github.com/bergos/readable-to-readable.git"},"keywords":["readable","stream"],"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"license":"MIT","bugs":{"url":"https://github.com/bergos/readable-to-readable/issues"},"homepage":"https://github.com/bergos/readable-to-readable","dependencies":{"readable-stream":"^3.6.0"},"devDependencies":{"get-stream":"^5.1.0","mocha":"^7.1.1","promise-the-world":"^1.0.1","standard":"^14.3.3"},"gitHead":"42ef07e40b69473a5d712c98e50e7bb2f6406a11","_id":"readable-to-readable@0.1.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"dist":{"integrity":"sha512-MZsAIc9RDJv2WoheuYeCEN7t0XQ1deckbcE+DoGgeSJ4lCjfI67ZQ+qjYoz301lXDaPo4Krp97LeLvCf0obGMA==","shasum":"441fd1ac290c5d1091ad61f4fef11313f0a39eb7","tarball":"https://registry.npmjs.org/readable-to-readable/-/readable-to-readable-0.1.1.tgz","fileCount":6,"unpackedSize":9972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehf7wCRA9TVsSAnZWagAA41IP/iEi+qb26RJOqATPpM8I\nmsqvyWBEZ4LOfPtcGMWusOTXheNSHPAxnrNAWb7u9vErsKG8u2zZdNH/56jo\nUFyE7NU2Gzmljb559yH493davKxG23f8mzdRQKrRzNe0crGmpIhiSGWB9X7Z\nlyP9D1JkDFKSxunUOUDH/DjRJBTp7A6JwNHFCtyOrHA7gflW2+J28d8LrXjp\niPBSa9hp+3oxt6a5oI9RZqLccpLA7BiNF35Y/bDAJXf+d/1vrhvix8wCJi96\nVqdlN0Y9aXXkCWjYUTwDFN3n1uOAo+8o1vpsfcKth9l47nb8gJF3SmGu0eYx\nDaAuWaNV/3yvoHtzEOxpsRLAjYzG1XiKREhsBoMoKsx3nw/exlv72+su4lc3\nJbmprZhsDGov9ihFsIvs6oPiuAbadWNo3gVqRrdCGKUIIZhLUnY7Al8XaEYo\nTwOZtlS4+zDQ8ytQM6mJnqETzKqeJ/jf/Fm500KB38oxRlBY1hW80nOG20Zl\n8FoXrEs/lOfdF7iORf3mGgjxPjKIg5ZoOGhAafXuh2PYe9tiFymC6cczEtnq\nAWy+02WAUXMvDR0i48X4BcclvaqNcx+dEcbol/4DP8el3baWiLzMusysIF6r\nBtj+PpQTaEHjm1KVxanL2DH78owmMl5nGuQNfyqDLyAeRYcmCSrqBxzrdxSl\nXKfs\r\n=QIXZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHdch1ckbA4j2mouqloCFcEIm15WOd7Yri35peUWJaOAiEA89g0YEjGjA90G2UfEaDTg5LyUvkB+D7reMeTxCYwuu8="}]},"maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readable-to-readable_0.1.1_1585839856313_0.27764221896199803"},"_hasShrinkwrap":false,"deprecated":"This package is no longer maintained"},"0.1.2":{"name":"readable-to-readable","version":"0.1.2","description":"Forwards the data of one Readable to another Readable","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git://github.com/bergos/readable-to-readable.git"},"keywords":["readable","stream"],"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"license":"MIT","bugs":{"url":"https://github.com/bergos/readable-to-readable/issues"},"homepage":"https://github.com/bergos/readable-to-readable","dependencies":{"readable-stream":"^3.6.0"},"devDependencies":{"get-stream":"^5.1.0","mocha":"^7.1.1","promise-the-world":"^1.0.1","standard":"^14.3.3"},"gitHead":"e9bb63302430358b3af3d1105bfc8b0b8e9a561c","_id":"readable-to-readable@0.1.2","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"dist":{"integrity":"sha512-QcK+Y8zLT6hDtXrrJAbORXhQVfUiKKqfgf2gWg55A7viqAl2SaniQS0CIMN6Aq9jZrIJgXcxWtt17KMoZ0b8DQ==","shasum":"cc30e5baf6974d5b91476a7cfcb1281421702e6b","tarball":"https://registry.npmjs.org/readable-to-readable/-/readable-to-readable-0.1.2.tgz","fileCount":6,"unpackedSize":10937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehjurCRA9TVsSAnZWagAAmw0P/0CsK5GQ6WJ2EBi/kgK5\nOizh1nxbm0ZfO+ZPfCm7GOtD1dxW9a6SRcPwAjHm8WifTiSqkYeEKNy2xr6G\nAV15SjDLY39fw4UGP6E80ct2cWbYKfRQFoVG2xulzIT4KxrOdyRuEs6vrXAo\ngvk1u3bczTGAeranWDIA0ylpJp1+qvdiZxrRabCPjh5R9jODEjkJv4ZQr/oH\nC2d/JNlVyU3aPPIim0ruwD23bekZm5AJCM9cN6COOopfn60ihoWmuB26bVMV\n5DYafshwDP0BYZ/kDX+UgNNmHuHvF7SrwtY2h5FszwVQoKpmoaaCc4OV+6A4\nFgK5yy+fdQUVoaYBAaNYaeSDumgN/zKg8oZt/4n3A3ErvTH3Re6roOlNMU3r\nZWkS2id/dtN5Z7OqKFR8OCRNYKOR9wFOnTgLgt4Jxzkray3d5tHxzUk53fDR\nQRwmIWO+fg2ecEl/xdmt9WD70H83OHCPoegMvJJcOSKB8J/Doz5hArd6HJAJ\nAbmMjsR1U2OSvRVFn1EhgIHiFt0YY7Ad/iSFIXEeNUsHDUCffgPZwvphmdyU\nKfjZk/HSB7pzg8EM5AsgjL+lbDCrHJNkKbMXMpuqzcZciZTVnZHaeYQ5s6GC\nvB03VedCo0OdyM0VfFvcL/6DrVLphaVJAiFoRg4eX3ymULXvWGxVHGJeu5vJ\n/0Ge\r\n=jXKM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCH0pJF5Il/7sm2a25Y/6nBs3XzrCwQNWqyOpJ6FAdzGQIgAOnX25coGE65XFmNmXv8BeT+RfX466yWk00tDO++NPE="}]},"maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readable-to-readable_0.1.2_1585855403210_0.11962509088208417"},"_hasShrinkwrap":false,"deprecated":"This package is no longer maintained"},"0.1.3":{"name":"readable-to-readable","version":"0.1.3","description":"Forwards the data of one Readable to another Readable","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git://github.com/bergos/readable-to-readable.git"},"keywords":["readable","stream"],"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"license":"MIT","bugs":{"url":"https://github.com/bergos/readable-to-readable/issues"},"homepage":"https://github.com/bergos/readable-to-readable","dependencies":{"readable-stream":"^3.6.0"},"devDependencies":{"get-stream":"^5.1.0","mocha":"^7.1.1","promise-the-world":"^1.0.1","standard":"^14.3.3"},"gitHead":"b68b96582c257ccf6ac03767f34c15b80e65dc81","_id":"readable-to-readable@0.1.3","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"dist":{"integrity":"sha512-G+0kz01xJM/uTuItKcqC73cifW8S6CZ7tp77NLN87lE5mrSU+GC8geoSAlfmp0NocmXckQ7W8s8ns73HYsIA3w==","shasum":"a799d497d5af12252d1999fc9bcb37302f704a1f","tarball":"https://registry.npmjs.org/readable-to-readable/-/readable-to-readable-0.1.3.tgz","fileCount":6,"unpackedSize":10964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehzmfCRA9TVsSAnZWagAALbwQAJXaYjxNOxtrCsQkQICO\nWGW6Llg16kEeMd/a7RJS/j25oqB6MFHKN5zhUb+vL9H5t/RmGaDSHKcxaNs4\nDjKXRWuhywCXon2OS47ETakUj4U4A0IusT9Iwknn4bQSqjmqHGZP3OOqGmNL\neo+0kBcAWg12laQjh8a8ygv1AEzydymCwp+t9K8+6gTsuWAEnfN1+Zh9VgM7\nABSS6VQc2OmYcboYeOl0/ePNn5HwN8J+1X7nrsRj7Nth5gInUJsb11lU1LwW\n2zPUEXKsFr0oWEawzXBsFB/Gsb/SqsjF5iVoqFlSmZ1ZZM8nzi8Bgjj00jz4\n8flwZLKpUl8R/5rsD9nWJVrQsxkoD1KvyWIK87XQpxXbognLzj5hazNj71KH\nvrmLtClLMV/xYjJI/h5y602l0pUqFZGi3RU+UrinGoL8xwUh5jwLbKu3iYtz\nb8tfizhK8Cvb0TWJQsBVtrpnWWu/gzAefAYEwjO6JK0cVOltaOEXxgPYx7eq\nLHWh1CpoG0afL/lck44M8j3CfZDXWXo0jcIkPRSdOM1O4JjlQNbIQylYPcV+\nUmUa8UhEoDpXFw7zzjfdZAJ5YVo9trTmgu+xOhovniKcomgcDFn6K8yXcSlj\nPwcgZTOQhKjfnH2CHKVdSvZkS7gngGGtDI6SwjYh6Mxu9nEYa+i+TmZ2HjKx\n6WdW\r\n=jVz5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsmZObQK9/Uq20AxD8b/NUpHGxQveJB1XgTLEjmJu5swIhAMEs6FAR9VCJoVxJe6dzRaf5VI3F40Vt85dmyCsGd4tw"}]},"maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readable-to-readable_0.1.3_1585920415502_0.5504256345158112"},"_hasShrinkwrap":false,"deprecated":"This package is no longer maintained"}},"time":{"created":"2019-03-27T01:08:53.021Z","0.0.1":"2019-03-27T01:08:53.146Z","modified":"2024-03-15T18:09:34.564Z","0.1.0":"2020-03-30T21:54:52.657Z","0.1.1":"2020-04-02T15:04:16.429Z","0.1.2":"2020-04-02T19:23:23.356Z","0.1.3":"2020-04-03T13:26:55.639Z"},"maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"description":"Forwards the data of one Readable to another Readable","homepage":"https://github.com/bergos/readable-to-readable","keywords":["readable","stream"],"repository":{"type":"git","url":"git://github.com/bergos/readable-to-readable.git"},"author":{"name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org","url":"https://www.bergnet.org/people/bergi/card#me"},"bugs":{"url":"https://github.com/bergos/readable-to-readable/issues"},"license":"MIT","readme":"# readable-to-readable\n\n`ReadableToReadable` forwards the data of another `Readable`.\nThis can be useful if a Readable must be wrapped into another `Readable`.\n\n## Usage\n\nThe package exports the `ReadableToReadable` class.\nIt can be imported like this:\n\n```javascript\nconst ReadableToReadable = require('readable-to-readable')\n````\n\n### ReadableToReadable (input, { map, ... })\n\nThe `ReadableToReadable` class can be used as a base class to create the new `Readable`.\nThe constructor must be called with the input stream as the first parameter.\nThe following optional options can be given as the second argument:\n \n- `end`: Close the instance at the end of the input stream. (default: `false`)\n- `map`: A function that translates the incoming chunks.\n- others: Any other arguments will be forwarded to the `Readable` constructor.\n\n### ReadableToReadable.readFrom (input, { map })\n\nThe `readFrom` function returns a `read` function for `Readable` instances.\nIt will forward the chunks from the given `input` `Readable`.\nThe function can be useful to create more customized instances of `Readable`.\nThe following optional options can be given as the second argument:\n\n- `end`: Close the output stream at the end of the input stream. (default: `false`)\n- `map`: A function that translates the incoming chunks.\n\nThe function returns `true` when the end of the input stream is reached and `false` for the case that the readable buffer is full. \n\n## Example\n\nTwo streams are created in this example.\nData is pushed to the `input` stream and read from the `output` stream.\nThe `output` stream is a `ReadableToReadable` that takes care of forwarding and also translated the string to upper case.\nOnce the data passed the two streams, it's written to the console.\nThis is done until the `output` is finished.\n\n```javascript\nconst { promisify } = require('util')\nconst { finished, Readable } = require('readable-stream')\nconst ReadableToReadable = require('..')\n\nasync function main () {\n  // just a plain Readable to push some data\n  const input = new Readable({\n    read: () => {}\n  })\n\n  // in the output stream we forward the data from input whenever .read is called\n  const output = new ReadableToReadable(input, {\n    map: chunk => chunk.toString().toUpperCase()\n  })\n\n  // add some data and close the stream\n  input.push('a')\n  input.push('b')\n  input.push('c')\n  input.push(null)\n\n  // write each chunk to the console\n  output.on('data', chunk => console.log(chunk.toString()))\n\n  // wait till the end event of output was emitted\n  await promisify(finished)(output)\n}\n\nmain()\n```\n","readmeFilename":"README.md"}