{"_id":"through2-map","_rev":"62-e9824e6c3cc37930c27c332067e949aa","name":"through2-map","description":"A through2 to create an Array.prototype.map analog for streams.","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"through2-map","version":"1.0.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"devDependencies":{"tape":"~1.0.4","tap":"~0.4.3","stream-spigot":"~2.0.0"},"dependencies":{"through2":"~0.1.0","concat-stream":"~1.0.0"},"_id":"through2-map@1.0.0","dist":{"shasum":"5e38cc977e5d252d593cb478b242a99ec5d9c046","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-1.0.0.tgz","integrity":"sha512-yNDSJeIcxFEaKLCfRb3SvMYb3TFMGyfG488YO06UV+aN4Jf/6zzJq1Al685qX4wtJ1ls8kVpzkyCrFvD0zpF8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7aOA43tV0jTOIpTlg9kISWBGc0e/y621Z8jdH5cM0IwIgRwu9fjr2XIfl5zO+dXVVf/D7f7J52pfJgcpqtySwG7g="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}]},"1.0.1":{"name":"through2-map","version":"1.0.1","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"devDependencies":{"tape":"~1.0.4","tap":"~0.4.3","stream-spigot":"~2.0.0"},"dependencies":{"through2":"~0.1.0","concat-stream":"~1.0.0"},"_id":"through2-map@1.0.1","dist":{"shasum":"85765409c9ed375a522748ba37480b5146aa94fc","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-1.0.1.tgz","integrity":"sha512-rLZcjdk7hrVRhdJDG4Q4U07XrG8RGvwWf+/qWStAEgPAayInYVTwHpbv6JHCr3pm8eZP1HKvT1z8BKt7kFPsDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFyC1MNhEoNuTkswGCp3jcDKfIEPQZ6t/yp7lgbXmfvAiEAiK992ekriM7UeKwVnM+wauSovul6685uz0NBy7c+btU="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}]},"1.0.2":{"name":"through2-map","version":"1.0.2","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"devDependencies":{"tape":"~1.0.4","tap":"~0.4.3","stream-spigot":"~2.0.0","concat-stream":"~1.0.0"},"dependencies":{"through2":"~0.1.0"},"_id":"through2-map@1.0.2","dist":{"shasum":"46d946bb6de2b8ebe0c08f5cdaa51a260f67aecb","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-1.0.2.tgz","integrity":"sha512-9ijAp+KbxndzoSTxHuY+aM/YZfE7h5yM7Z+3nKJmGKm9coUpyDo2UR43Z3waJx+FySnt7i0MRABre0z4hqw6Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrUVwdWLZH5GEZ01c6rfSajL8v+5XFuu3f2RGomlVfQgIgfMPgc3GSTLWhKT3SWa2IppmuaeRbAeLpVlJdfeovIKg="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}]},"1.1.0":{"name":"through2-map","version":"1.1.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"devDependencies":{"tape":"~1.0.4","tap":"~0.4.3","stream-spigot":"~2.0.0","concat-stream":"~1.0.0"},"dependencies":{"through2":"~0.1.0"},"_id":"through2-map@1.1.0","dist":{"shasum":"82db87b7469dd0548efc49e7d5ee622d778e6875","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-1.1.0.tgz","integrity":"sha512-3/Qj5DI/WFdpz6p6sY4uD9YqKJ7ucIJoUdJ5YLy1c6J7mBSAHJDfLwj8R7s6pdqZz8wWAm3Gv5zW3ERSdimscw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGLCPrRvJr5QOYjB1NyfK3iYBQ/0SeaY8uqpurhCOjIgIgYw7aHl87RDQXLS2AtOZpJbBrAJ3g5N/TnbURpxAoKrE="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}]},"1.2.0":{"name":"through2-map","version":"1.2.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"devDependencies":{"tape":"~1.0.4","tap":"~0.4.3","stream-spigot":"~2.0.0","concat-stream":"~1.0.0"},"dependencies":{"through2":"~0.2.2"},"_id":"through2-map@1.2.0","dist":{"shasum":"c175154e27b2936d1576a540f6867efd199b6a9a","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-1.2.0.tgz","integrity":"sha512-b4czx9jd2i7sv6/Nv0MmqlctsMWmejN4OGNnX9UloQh3kmzGCKYtMYLnB3y3HAVbazin3OYixGokSvuHvxrOPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICuMq7ZQaF1lSXsiL++LYOEx4hSkeAdwSaF18ctvN+QDAiBZiClcTTxmeGc30No+n/lqFPglm6NW0TzSFooUxA2L/g=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}]},"1.2.1":{"name":"through2-map","version":"1.2.1","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"devDependencies":{"tape":"~2.3.0","stream-spigot":"~3.0.1","concat-stream":"~1.2.1"},"dependencies":{"through2":"~0.2.3","terminus":"~1.0.4"},"homepage":"https://github.com/brycebaril/through2-map","_id":"through2-map@1.2.1","dist":{"shasum":"5d9bf15f29f48815de2da347581eaac89c402de6","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-1.2.1.tgz","integrity":"sha512-3KTR4uNltpTlhK/Mar09FDPW5XPvPlBp9R6g1GOi+7jdwe43BsAahVoSCeUTljUiXQTK5RfGjFuamY39qfmZXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBPeY0woFOuzPFFCyKVCX2/sdTQ4i/zTv2slPiDncZb9AiAqmpvgLGL3SqTOxBndkaMF3YRvU+DbfyoLzWAUbE5dUw=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}]},"1.3.0":{"name":"through2-map","version":"1.3.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"jshintConfig":{"asi":true,"globalstrict":true,"validthis":true,"eqnull":true,"node":true,"loopfunc":true,"newcap":false,"eqeqeq":false},"devDependencies":{"tape":"~2.4.0","stream-spigot":"~3.0.3","concat-stream":"~1.4.1"},"dependencies":{"terminus":"~1.0.8","through2":"~0.4.1","xtend":"^3.0.0"},"homepage":"https://github.com/brycebaril/through2-map","_id":"through2-map@1.3.0","_shasum":"a27f1a741285aabe6dc526bec4ca4d53073d39a7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}],"dist":{"shasum":"a27f1a741285aabe6dc526bec4ca4d53073d39a7","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-1.3.0.tgz","integrity":"sha512-BVhD+i52q/4x6+fcJURuDBFwai8VBYXfpUBB0qkN9qTLjYTY1q3VmK02ROo+MqykLPJVukeGNUCPOfICTKtLiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOk35Gcs7zgL+VHjZ2924VPLHcEUs/Ikk8njPbAPzpwAiBuFdZhiF6GdEtdYVH8flMj9gG48vN2vjrGWedjy0vMiA=="}]}},"1.4.0":{"name":"through2-map","version":"1.4.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"jshintConfig":{"asi":true,"globalstrict":true,"validthis":true,"eqnull":true,"node":true,"loopfunc":true,"newcap":false,"eqeqeq":false},"devDependencies":{"tape":"~2.13.2","stream-spigot":"~3.0.4","concat-stream":"~1.4.6"},"dependencies":{"terminus":"~1.0.10","through2":"~0.5.1","xtend":"^3.0.0"},"homepage":"https://github.com/brycebaril/through2-map","_id":"through2-map@1.4.0","_shasum":"7cb13e7c9ef00c7a93c742567f9d2e51168ff7f5","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}],"dist":{"shasum":"7cb13e7c9ef00c7a93c742567f9d2e51168ff7f5","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-1.4.0.tgz","integrity":"sha512-tYo4/J1FP43M44catBpudD4KzeQsWMyVraxdDS3i6CMmz5758vFEdjDja9wNu0JGOK8sXxGFEqFsK4OFYqE5mQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA1lACcTlIuibyvTywh+IMtj820y0PelIZScS9WEpJRIAiB7+VJTeDOXnkfBR2lulY1Dfa8eSOg1GMysbgV9JA6LLg=="}]}},"2.0.0":{"name":"through2-map","version":"2.0.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/"},"repository":{"type":"git","url":"git@github.com:brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"jshintConfig":{"asi":true,"globalstrict":true,"validthis":true,"eqnull":true,"node":true,"loopfunc":true,"newcap":false,"eqeqeq":false},"devDependencies":{"tape":"~4.0.0","stream-spigot":"~3.0.5","terminus":"~1.0.12"},"dependencies":{"through2":"~2.0.0","xtend":"^4.0.0"},"gitHead":"2ba6ff9dcd153722e1141d64d0783f9fd7b8771e","homepage":"https://github.com/brycebaril/through2-map","_id":"through2-map@2.0.0","_shasum":"46984672e2c2d8a41e176f56fb575beb64d8ed7e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}],"dist":{"shasum":"46984672e2c2d8a41e176f56fb575beb64d8ed7e","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-2.0.0.tgz","integrity":"sha512-12Gv4b/DMG1FpSz3g1eKuhmgpUTKwKQoWQX4gHRNQMHaZK0aV9VqF+vW0fzdkE002GQJZAe8QZwWR1Vi+1dw7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBO5JMih9XSm9ntjOCvA+tyV7mVDD0DipaOKq4K0LLSJAiEA78KeUtqA6KDF3Toz1AmdJ/yAOkP6Ba2s4i9rI0apjVg="}]}},"3.0.0":{"name":"through2-map","version":"3.0.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/"},"repository":{"type":"git","url":"git+ssh://git@github.com/brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"jshintConfig":{"asi":true,"globalstrict":true,"validthis":true,"eqnull":true,"node":true,"loopfunc":true,"newcap":false,"eqeqeq":false},"devDependencies":{"tape":"~4.0.0","stream-spigot":"~3.0.5","terminus":"~1.0.12"},"dependencies":{"through2":"~2.0.0","xtend":"^4.0.0"},"gitHead":"8a482d218bdf2de40bf867a1f28ffa9fa0a3b315","homepage":"https://github.com/brycebaril/through2-map#readme","_id":"through2-map@3.0.0","_shasum":"a6c3026ce63b4898a997d540506b66ffd970f271","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}],"dist":{"shasum":"a6c3026ce63b4898a997d540506b66ffd970f271","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-3.0.0.tgz","integrity":"sha512-Ms68QPbSJKjRYY7fmqZHB0VGt+vD0/tjmDHUWgxltjifCof6hZWWeQAEi27Wjbs7jyNlIIyerQw/TVj7gHkd/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTAwiG/YV0yeQ9XwHTGH5ylDT2+U5WchW0jMqjZIwexQIhANJ9yBHJaIK3auYESNoHLPaBpRvvQgH8tSagA8s6neRV"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/through2-map-3.0.0.tgz_1478371847646_0.8123708353377879"}},"3.1.0":{"name":"through2-map","version":"3.1.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/"},"repository":{"type":"git","url":"git+ssh://git@github.com/brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"engines":{"node":">= 6"},"jshintConfig":{"asi":true,"globalstrict":true,"validthis":true,"eqnull":true,"node":true,"loopfunc":true,"newcap":false,"eqeqeq":false},"devDependencies":{"tape":"~4.0.0","stream-spigot":"~3.0.5","terminus":"~1.0.12"},"dependencies":{"through2":"^4.0.2"},"_id":"through2-map@3.1.0","gitHead":"a79bf7b8894edbcb00cc2cdf1e5658511aa5b0b8","homepage":"https://github.com/brycebaril/through2-map#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-DLIkZZJEeuxna8sh3CAi6q9i6CzmDxjUFM4snoMCGXdR+yybspuNgalZJ9DthcDU9jqnbpq3PQs22a5Q7km0/Q==","shasum":"af8905db16593dc39f9b7db44326dded0f739c3c","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-3.1.0.tgz","fileCount":5,"unpackedSize":10512,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDqshG6uPysyW3GxdMmw7rNLUOfOzx3aUJ84ATj3427wIgChaCHGfOY9Rwv3IV28f3/p5IE3NGy4xPiCS03q5CtpQ="}]},"_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/through2-map_3.1.0_1712956850303_0.4704400723427551"},"_hasShrinkwrap":false,"deprecated":"this package has been deprecated for breaking semver major"},"4.0.0":{"name":"through2-map","version":"4.0.0","description":"A through2 to create an Array.prototype.map analog for streams.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/"},"repository":{"type":"git","url":"git+ssh://git@github.com/brycebaril/through2-map.git"},"keywords":["streams","through","through2","map"],"author":{"name":"Bryce B. Baril"},"license":"MIT","bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"engines":{"node":">= 6"},"jshintConfig":{"asi":true,"globalstrict":true,"validthis":true,"eqnull":true,"node":true,"loopfunc":true,"newcap":false,"eqeqeq":false},"devDependencies":{"tape":"~4.0.0","stream-spigot":"~3.0.5","terminus":"~1.0.12"},"dependencies":{"through2":"^4.0.2"},"_id":"through2-map@4.0.0","gitHead":"acc8511f395b170bb0531c6177f4fcd79979f862","homepage":"https://github.com/brycebaril/through2-map#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-+rpmDB5yckiBGEuqJSsWYWMs9e1zdksypDKvByysEyN+knhsPXV9Z6O2mA9meczIa6AON7bi2G3xWk5T8UG4zQ==","shasum":"4ff70fe60c555e230472868b837a96a24645b160","tarball":"https://registry.npmjs.org/through2-map/-/through2-map-4.0.0.tgz","fileCount":5,"unpackedSize":10512,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqzXF3XyvC3fuInfqoOmZ2lKyjsjUuh+iCGspRYFUr5AiBxugMcCCyueyrkq4k+poSiQL0qtxzM4GfBqVhFTa8s4A=="}]},"_npmUser":{"name":"bryce","email":"bryce@ravenwall.com"},"maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/through2-map_4.0.0_1713635211216_0.47939686630935396"},"_hasShrinkwrap":false}},"readme":"through2-map\n============\n\n[![NPM](https://nodei.co/npm/through2-map.png)](https://nodei.co/npm/through2-map/)\n\nThis is a super thin wrapper around [through2](http://npm.im/through2) that works like `Array.prototype.map` but for streams.\n\nFor when through2 is just too verbose :wink:\n\nNote you will **NOT** be able to skip chunks. This is intended for modification only. If you want filter the stream content, use either `through2` or `through2-filter`. This transform also does not have a `flush` function.\n\n**IMPORTANT:** If you return `null` from your function, the stream will end there.\n\n```js\n\nvar map = require(\"through2-map\")\n\nvar truncate = map(function (chunk) {\n  return chunk.slice(0, 10)\n})\n\n// vs. with through2:\nvar truncate = through2(function (chunk, encoding, callback) {\n  this.push(chunk.slice(0, 10))\n  return callback()\n})\n\n// Then use your map:\nsource.pipe(truncate).pipe(sink)\n\n// Additionally accepts `wantStrings` argument to convert buffers into strings\nvar stripTags = map({wantStrings: true}, function (str) {\n  // OMG don't actually use this\n  return str.replace(/<.*?>/g, \"\")\n})\n\n// Works like `Array.prototype.map` meaning you can specify a function that\n// takes up to two* arguments: fn(chunk, index)\nvar spaceout = map({wantStrings: true}, function (chunk, index) {\n  return (index % 2 == 0) ? chunk + \"\\n\\n\" : chunk\n})\n\n// vs. with through2:\nvar spaceout = through2(function (chunk, encoding, callback) {\n  if (this.index == undefined) this.index = 0\n  var buf = (this.index++ % 2 == 0) ? Buffer.concat(chunk, new Buffer(\"\\n\\n\")) : chunk\n  this.push(buf)\n  return callback()\n})\n\n```\n\n*Differences from `Array.prototype.map`:\n  * Cannot insert `null` elements into the stream without aborting.\n  * No third `array` callback argument. That would require realizing the entire stream, which is generally counter-productive to stream operations.\n  * `Array.prototype.map` doesn't modify the source Array, which is somewhat nonsensical when applied to streams.\n\nAPI\n---\n\n```\nrequire(\"through2-map\")([options,] fn)\n```\n\nCreate a `stream.Transform` instance that will call `fn(chunk, index)` on each stream segment.\n\n- - -\n\n```\nvar Tx = require(\"through2-map\").ctor([options,] fn)\n```\n\nCreate a reusable `stream.Transform` TYPE that can be called via `new Tx` or `Tx()` to create an instance.\n\n- - -\n\n```\nrequire(\"through2-map\").obj([options,] fn)\n```\n\nCreate a `through2-map` instance that defaults to `objectMode: true`.\n\n- - -\n\n```\nrequire(\"through2-map\").objCtor([options,] fn)\n```\n\nJust like ctor, but with `objectMode: true` defaulting to true.\n\nOptions\n-------\n\n  * wantStrings: Automatically call chunk.toString() for the super lazy.\n  * all other through2 options\n\nLICENSE\n=======\n\nMIT\n","maintainers":[{"name":"bryce","email":"bryce@ravenwall.com"}],"time":{"modified":"2024-04-20T17:46:51.575Z","created":"2013-08-06T05:12:18.534Z","1.0.0":"2013-08-06T05:12:20.429Z","1.0.1":"2013-08-06T05:14:34.407Z","1.0.2":"2013-08-06T05:18:42.091Z","1.1.0":"2013-08-07T06:34:55.255Z","1.2.0":"2013-09-20T17:46:45.107Z","1.2.1":"2013-12-13T19:07:49.824Z","1.3.0":"2014-06-04T18:04:09.195Z","1.4.0":"2014-06-10T07:07:38.316Z","2.0.0":"2015-06-17T06:45:28.251Z","3.0.0":"2016-11-05T18:50:49.365Z","3.1.0":"2024-04-12T21:20:50.485Z","4.0.0":"2024-04-20T17:46:51.381Z"},"author":{"name":"Bryce B. Baril"},"repository":{"type":"git","url":"git+ssh://git@github.com/brycebaril/through2-map.git"},"homepage":"https://github.com/brycebaril/through2-map#readme","keywords":["streams","through","through2","map"],"bugs":{"url":"https://github.com/brycebaril/through2-map/issues"},"license":"MIT","readmeFilename":"README.md","users":{"nkbt":true,"greendwin":true,"juicypasta":true,"artskydj":true,"pnevares":true,"pengzhisun":true,"jmorris":true,"vladan":true,"narayanmp":true,"ex.zach.ly":true,"jabbalaci":true,"vinchik":true,"gokkun":true,"x0000ff":true,"dyohns":true,"jun-oka":true,"mrzmmr":true,"mickeyzhou":true,"tvvixie":true,"kiinlam":true,"shivayl":true,"chandimal":true}}