{"maintainers":[{"name":"anonymous","email":"yo@contra.io"},{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"keywords":["transform","readable","through","wrap"],"dist-tags":{"latest":"3.0.0"},"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"https://gulpjs.com/"},"description":"Wrap a Readable stream in a Transform stream.","readme":"<p align=\"center\">\n  <a href=\"http://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# to-through\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nWrap a `Readable` stream in a `Transform` stream.\n\n## Usage\n\n```js\nvar { Readable } = require('streamx');\nvar concat = require('concat-stream');\nvar toThrough = require('to-through');\n\nvar readable = Readable.from([' ', 'hello', ' ', 'world']);\n\n// Can be used as a Readable or Transform\nvar maybeTransform = toThrough(readable);\n\nReadable.from(['hi', ' ', 'there', ','])\n  .pipe(maybeTransform)\n  .pipe(\n    concat(function (result) {\n      // result === 'hi there, hello world'\n    })\n  );\n```\n\n## API\n\n### `toThrough(readableStream)`\n\nTakes a `Readable` stream as the only argument and returns a `Transform` stream wrapper. Any data\npiped into the `Transform` stream is piped passed along before any data from the wrapped `Readable` is injected into the stream.\n\n## License\n\nMIT\n\n<!-- prettier-ignore-start -->\n[downloads-image]: https://img.shields.io/npm/dm/to-through.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/to-through\n[npm-image]: https://img.shields.io/npm/v/to-through.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/to-through/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/to-through/dev?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/to-through\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/to-through/master.svg?style=flat-square\n<!-- prettier-ignore-end -->\n","repository":{"type":"git","url":"git+https://github.com/gulpjs/to-through.git"},"bugs":{"url":"https://github.com/gulpjs/to-through/issues"},"license":"MIT","versions":{"1.0.0":{"name":"to-through","version":"1.0.0","description":"Wrap a ReadableStream in a TransformStream.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/to-through.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint index.js test/ && jscs index.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"through2":"^2.0.3"},"devDependencies":{"eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0"},"keywords":["transform","readable","through","wrap"],"gitHead":"28115f9d23bee350fc6cc2b25be21baf0f1deae1","bugs":{"url":"https://github.com/gulpjs/to-through/issues"},"homepage":"https://github.com/gulpjs/to-through#readme","_id":"to-through@1.0.0","_shasum":"25b0748021423ee5ce36d3aa9f5ddbee7b68699a","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"anonymous","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"25b0748021423ee5ce36d3aa9f5ddbee7b68699a","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/to-through/-/to-through-1.0.0.tgz","integrity":"sha512-l9jxWbV39bBhrDswQpcHZrjoJ+NpL/nw26X0Sj2xk1yp7ogTv9RLdPO97/baxTL+sLW6TEthimbK729x8B+deg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGX8Empx/IhaEOpUyGpzasqvJqBYVm6Es9rwHwT8WSKAiAXX1TMwOElw54zFfbOU+rhL6blQle1iNUp8Fdq0R7fuQ=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/to-through-1.0.0.tgz_1493771525301_0.3525624929461628"},"directories":{}},"1.0.1":{"name":"to-through","version":"1.0.1","description":"Wrap a ReadableStream in a TransformStream.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/to-through.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint index.js test/ && jscs index.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"through2":"^2.0.3"},"devDependencies":{"eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0"},"keywords":["transform","readable","through","wrap"],"gitHead":"0c1147256f731ebc3760a72ce71f82456ec0829c","bugs":{"url":"https://github.com/gulpjs/to-through/issues"},"homepage":"https://github.com/gulpjs/to-through#readme","_id":"to-through@1.0.1","_shasum":"274aba328c84d70b50be3d9322ed115da40f2eff","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"anonymous","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"274aba328c84d70b50be3d9322ed115da40f2eff","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/to-through/-/to-through-1.0.1.tgz","integrity":"sha512-pdfFmuRDzclS39DUjQ+WjstmPVgmHcTyBMz/P+KiBpKdcdoyq3UmUoQGNsTAaE90Hl8F2Qc6U0gJk1bH7kkX0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHWKacynUw3lCdc1fJzly7sbFo3asXA31DRs+lfG4S7AiEA7SogUtCRO7Ks0R0CpF2IzzixDOS8eUqxxwZ1Fgs/UEk="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-through-1.0.1.tgz_1493772494064_0.6583631632383913"},"directories":{}},"2.0.0":{"name":"to-through","version":"2.0.0","description":"Wrap a ReadableStream in a TransformStream.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/to-through.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint index.js test/ && jscs index.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"through2":"^2.0.3"},"devDependencies":{"eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0"},"keywords":["transform","readable","through","wrap"],"gitHead":"535a3896be9b8afb9a435199eb153b089dccd55e","bugs":{"url":"https://github.com/gulpjs/to-through/issues"},"homepage":"https://github.com/gulpjs/to-through#readme","_id":"to-through@2.0.0","_shasum":"fc92adaba072647bc0b67d6b03664aa195093af6","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"anonymous","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"fc92adaba072647bc0b67d6b03664aa195093af6","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/to-through/-/to-through-2.0.0.tgz","npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2+CVCRA9TVsSAnZWagAA0N0P/in9ZQrhjbW5Ij5j5n2f\n0NXdtO4Mj3hDxtVAvUfC5lrewkfS/YLpsxX7p15brfDJfE+ppAkZd9hf8rxi\nnc2gbnFKuZF9sBRj+bZQbkbbrEzguxGSIs1yePhww8sSws1ops3Ta6Ow/Mrz\nJLOHtWCIkXNUirDoKPfkPUiybgkWBblCLPX37W75gaxqIWky6DkvBuyqp6eB\nAY7+Bg1WwhEJr6UYp2giYGMHKkFjb+PchAkJcFaH6E2Y9tL2JGYT7m9ThJui\nMhwK3K+53tsBItQNVkbf13Ys0XuozwSHoQ/cHnEdFNtoyYoRTHa5dtAE0vnR\ncvrVol4yml8VbQTZ3oTvaoHp1Lq1O//I9WPSmAeQrdbqLXZiqAIH2qFdPERy\ndkkfd5UxK3ZCZuoYbK5GQNOgQZmLERp1yH8+7utIw9ZD3uJe/Y10sq5ERMZh\nAR2zh582fNFJ1FjHCpjFbi94PDpd3BkbCxKbhR1xSUGDfo3CLZWm+pSvMfF4\n85Ar9QpY6wGY5HM6WNwtqAeOPAkKtZIwbXOd1loBQE4vp2ZrydEXoUPbCsfl\nOpwQyGXExDZeBs7GKv0LXinaHUFIJ5h5qHTHQiC89LhBDFX6UbFBNEGMP99H\nYy4+pR2/BspuGOrCZluYhDBzSZjZ6c29dpEjC40jJqHbMC6OXYzHmUtaxOz7\nz1km\r\n=zlnF\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-+QIz37Ly7acM4EMdw2PRN389OneM5+d844tirkGp4dPKzI5OE72V9OsbFp+CIYJDahZ41ZV05hNtcPAQUAm9/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwK16dZKitPzIQlf2vGidHHObqeqRA/oJOzZovaSdpVAiA9/t39CGHZB9WvkZyCAXgizDkiLUE/ZRuiXNVkfgEbDQ=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-through-2.0.0.tgz_1493835232407_0.393965846626088"},"directories":{}},"3.0.0":{"name":"to-through","version":"3.0.0","description":"Wrap a Readable stream in a Transform stream.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"https://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/to-through.git"},"license":"MIT","engines":{"node":">=10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"dependencies":{"streamx":"^2.12.5"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.4.2","mocha":"^8.4.0","nyc":"^15.1.0","readable-stream":"^3.6.0"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["transform","readable","through","wrap"],"gitHead":"2b662242043ee2dcd3d61f91db778448d4f05ea0","bugs":{"url":"https://github.com/gulpjs/to-through/issues"},"homepage":"https://github.com/gulpjs/to-through#readme","_id":"to-through@3.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-y8MN937s/HVhEoBU1SxfHC+wxCHkV1a9gW8eAdTadYh/bGyesZIVcbjI+mSpFbSVwQici/XjBjuUyri1dnXwBw==","shasum":"bf4956eaca5a0476474850a53672bed6906ace54","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/to-through/-/to-through-3.0.0.tgz","fileCount":4,"unpackedSize":7156,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMtUv+9Uf5yC/hZJRswxJOdaULH5omOJQIPnSUmwVWzAiBN1BvVPSKYgmi+Elic1Cx1aXqXlSVxIrKnL0gIAjvP1g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGR1UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpd0Q/5AUlCnJ7IlWjaICsPSdA1TbMRV7uwhpOiYQx9UKAWAy5ORhdJ\r\n6Hl+6UZeFsRh+1WOYQwcqMCEJwtpf6J5qGX7WMtR/1KTE/gNKj+QVmkaS6i8\r\nJQdTc3CIkgiHlRv7SXuVkU2pv+YCVKPKUJHpOBdjTlxK7c70uuz8hRp7KGM0\r\nP6KsMoa9D1glgHgkdTGTsBGNRmxWwFWJaRmDg2uSqE+srgOQworV+FB8+A0Y\r\nnEFtmnLy/CaisS0mhsKfURnTHe2R3FXKzdG0Dc2g3tJSUBbafEZXBcM/fHHB\r\npt5RTWb1yqpYap+6GMke/8DDSNdgY+amGSqLPzcvpj/rNBOIpeYmZGyzGjvc\r\ndiFeWg78Hw1lDGmpuBTGnVxwGjOQV/rQXM/DsNNJnAAdvr9mUmhkoz/VGFwX\r\nRXwmiae70IkEowV3nEVYKIHHEekqUsEefGwhlgNRSGkNVbrw5Ca+hMfXRECg\r\ntLKCuWLVX6rTm/KXGeki7QElwbbV9c39gAA+PvUZYmYNBbWS2QXj70Ol+v+d\r\nMIAUDyODscHHW4YJeiQ0ghe80heOKxzS/s32PAZeBrE1Gy0sPcFhnyWcKkkw\r\nTsOyTSzVclzmTZtaIu0IKuc3+/EM7E3X9xQsrX3PiuzWLVgrQxQBjGELIrdo\r\nqjK2GzBuOZBiGq7tO65e4MKPprcIFuq3PX8=\r\n=QTyc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anonymous","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"yo@contra.io"},{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-through_3.0.0_1662590292753_0.22351092760893665"},"_hasShrinkwrap":false}},"name":"to-through","time":{"modified":"2022-09-07T22:38:13.006Z","created":"2017-05-03T00:32:07.541Z","1.0.0":"2017-05-03T00:32:07.541Z","1.0.1":"2017-05-03T00:48:14.342Z","2.0.0":"2017-05-03T18:13:52.644Z","3.0.0":"2022-09-07T22:38:12.909Z"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"readmeFilename":"README.md","homepage":"https://github.com/gulpjs/to-through#readme"}