{"_id":"cloneable-readable","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"keywords":["readable","stream","clone"],"dist-tags":{"readable2":"1.1.3","latest":"3.0.0"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"description":"Clone a Readable stream, safely","readme":"# cloneable-readable\n\nClone a Readable stream, safely.\n\n```js\n'use strict'\n\nvar cloneable = require('cloneable-readable')\nvar fs = require('fs')\nvar pump = require('pump')\n\nvar stream = cloneable(fs.createReadStream('./package.json'))\n\npump(stream.clone(), fs.createWriteStream('./out1'))\n\n// simulate some asynchronicity\nsetImmediate(function () {\n  pump(stream, fs.createWriteStream('./out2'))\n})\n```\n\n**cloneable-readable** automatically handles `objectMode: true`.\n\nThis module comes out of an healthy discussion on the 'right' way to\nclone a Readable in https://github.com/gulpjs/vinyl/issues/85\nand https://github.com/nodejs/readable-stream/issues/202. This is my take.\n\n**YOU MUST PIPE ALL CLONES TO START THE FLOW**\n\nYou can also attach `'data'` and `'readable'` events to them.\n\n## API\n\n### cloneable(stream)\n\nCreate a `Cloneable` stream.\nA Cloneable has a `clone()` method to create more clones.\nAll clones must be resumed/piped to start the flow.\n\n### cloneable.isCloneable(stream)\n\nCheck if `stream` needs to be wrapped in a `Cloneable` or not.\n\n## Acknowledgements\n\nThis project was kindly sponsored by [nearForm](http://nearform.com).\n\n## License\n\nMIT\n","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"users":{"zhenguo.zhao":true,"seangenabe":true,"nicknaso":true,"matteo.collina":true},"bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"license":"MIT","versions":{"2.0.0":{"name":"cloneable-readable","version":"2.0.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.3","from2":"^2.1.1","pre-commit":"^1.1.2","standard":"^11.0.1","tap-spec":"^5.0.0","tape":"^4.9.1"},"dependencies":{"inherits":"^2.0.1","readable-stream":"^3.0.0"},"gitHead":"49937bc3cf7c002ab1f835b12740d58ddaca0201","_id":"cloneable-readable@2.0.0","_npmVersion":"6.3.0","_nodeVersion":"8.11.3","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-YjptvQM0hnSgrEQJPnGu3MqaK3iZ+37HaVBf5/wHyViQUQOGz5w+C44DllnInlUQjDISTyErf4Xa+RFEF1QB3Q==","shasum":"57b05f40f0dc95f5d6e18992c845f5fcf5b24f51","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-2.0.0.tgz","fileCount":7,"unpackedSize":21250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcVGNCRA9TVsSAnZWagAA+yMP/3MRHHCbt1LFTyEOc10t\nUFEOVDDkjLs2KDT9l24qSFiaIJpTjY1WIBA+8sZw5oAKdhxSMEDBuI6U8qXU\n5H/jd1Cnrs5r3EMuFLIxEWBiOrhhlzGIpVVTrhP+WJZN/+Ai+GksfRDNYtez\nQ4nbISIbBAsaT1aFygwgSjMM1T5NuT+XWfnicdbjVxm3LcsFFKQK/OPoRhLN\nUeFQmQ/8XbxvhIWkVQhiOhxbDtTpUXXlSmSpnLQJz8wC1/1QaKiOIK/fByFb\n+fX5dLNODsCXl7vuFZSkG15aH/OIdL+FhArMTupGxTN3FI+MCZ8WPDhPuPfi\nNORoFedmi2v0cyBvquXmspaTAQdzpr43aaD9fhmCLf+TvY6Tm2DTRMQPUVsE\nf0tCELPqvkbqYOOiO1vi/JoEhP3xcXCeid2cZFPJJ3nmJpo1Gkw1GnP0Q34Z\nfc7oOKiW/0bRYDOXEg+5ZzKTVk+nuuMNZbEmCJkrBxFo67o9j+25rm5U6upp\noz7FLnraAjEg4TOvrrPjF9sjxRMFbiXxgfCpbXHH4JL1Qud5NF1b5VjnVmmR\nh2UQ8xnA3+46mmHp6bLRLhXI2kgLrv7uYi7ytTbE4jrCCCj3CnwKYvpVAC6J\nDDFh9WcicOXPwen0WHb3WUg/35zXWOQAqGPZQ0JvxerOtU460oLaj6MlMsD0\nmdij\r\n=NYvZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv0lfZjkziw+T7lMXND7Fsj6+DgSnCAZYWayCNeCCvSAIhAI8Qf636yEBYeQNE2Otvq3ZORiQ+GfmkdWyRKQw/HKHx"}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloneable-readable_2.0.0_1534153100762_0.9410479938470879"},"_hasShrinkwrap":false},"2.0.1":{"name":"cloneable-readable","version":"2.0.1","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^2.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","standard":"^12.0.1","tap-spec":"^5.0.0","tape":"^4.9.1"},"dependencies":{"inherits":"^2.0.1","readable-stream":"^3.3.0"},"gitHead":"a9b71fd69a4671088c485a72377af07918a3b60c","_id":"cloneable-readable@2.0.1","_nodeVersion":"10.15.2","_npmVersion":"6.9.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-1ke/wckhpSevGPQzKb+qGHMsuFrSUKQlsKh0PTmscmfAzw8MgONqrg5a0e0Un1YO/cOSS4wAepfXSGus5RoonQ==","shasum":"fc2240beddbe5621b872acad8104dcc86574e225","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-2.0.1.tgz","fileCount":7,"unpackedSize":21738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5r66CRA9TVsSAnZWagAANtwQAIIlfgMyeC5aM5N3yA8c\nhJUIJJKDb7l/uToAyymUqs2Zk0wEXn2g687O54XSc5lVQfe3CCUIa/sqpg3q\nkOTxwjsPer5w2YdxPMfdo5GHGDe2xK4e1aP/CqSzu3nrJ5Pz8w2sGWnDrC8b\nJ1gsiV4G4U6/K3QSoXEMxiuaHp1/YmlA5aMChh+jAa+Ee7tAipHtKU0/UCc4\nPYnR3WETIQoVh6OuysClLsjMVB6cJzEG2WvMwq/DZtvVhr+r2d9tK/XJiEMd\nHZ622baXaKmZo0JeoeY0X2hMEn/l2y0Al9vbtxpnMWM646TXDUznVQA0FpMY\nYi43rS7xCbnrxizybmfUfEdKH3+246uXj5LPbShs72s0U7htsTQmtNtSnqXb\niz3REvycqvWrdze849wTBQX26LNGV8xWO8yuqr5GhiCrkeAicJeJ0EhBGdJm\ntkJ3ObhDz5tcL2UZ2D2riCAY93Ip4oTQHJWCCcdm6D3MpUmzoICIApJvC7it\nvDHWySRC0HA24OQ790Zm72cX0SQdvKGc3oyBFWMu+HEBLAP6jRo3A5SlRqBW\nof1htBMEoXXq41kaMWGe7ZX212aypv1LIVLaouBl7iNkTkfL97tOeul2uA7y\nXQ92stKxx/Cj2U1Uqxn0DY6x+RJjhY1O0/yAv/6znRbhQbRKDaa2BDsHxIaU\no7OR\r\n=Sz1f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByBt3eOVS2FZVq/gxZKvHiEH41FTc2E7bvU0Df3uFpIAiBi9VX1Hcw5W0vtWKRr5ighANVHWNZH+phelaEZ3W35Hg=="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloneable-readable_2.0.1_1558625977413_0.2898839014569865"},"_hasShrinkwrap":false},"2.1.0":{"name":"cloneable-readable","version":"2.1.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^2.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","standard":"^16.0.1","tap-spec":"^5.0.0","tape":"^5.0.0"},"dependencies":{"inherits":"^2.0.1","readable-stream":"^3.3.0"},"gitHead":"e5160858c7fe1a317c0ba47b256cf750ac3dd866","_id":"cloneable-readable@2.1.0","_nodeVersion":"12.20.0","_npmVersion":"6.14.10","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-GP0FuTTREdvgNQwJzvLVcPCrHwsryC/KSrDlrWM3nyXpvskmAwT55G8LwQpjS5VHrZfaeqABwSOdYBuuqUzRfQ==","shasum":"865742bfdcd3782e5fdd98d659aa06b575938c09","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-2.1.0.tgz","fileCount":7,"unpackedSize":23698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9ye+CRA9TVsSAnZWagAAHDcQAJ3cI6uMpTv8Eub+s1xK\n3XVlnoI1C61YT4MglX7CkgrC7TS3VUDbl+ODKG9HKhcG6QBKP8eNTv72jVvG\nWjGdYFAw5P2MRxdT575JfIO5k9RPh2qMAJuuX0IfmyFoXY4WmEOJJuzKfGJ3\nUubEOWT2bFizRXlYyGfzVAs97FhV2WjI46igcvQTgox7j6EmxWIGGyX8qxpm\nAX9/2ZYH27ZmqzqR9FtX5nYS2+y4GPAlZ8k69nCSV2gF+JpCZGfFbCayZ3Ec\nAqAlx1uUP499hF6NPk35VRslT+ns3NibDV6xKiKafwbFl8F26cEjzQJhvRj+\nHDHJ+9BvGN1Zod58MIB34ePqSegoDJ+U7I5UuqFJn/US+dWTG5ByY0HW0siC\nET97cOI+ydsttEh54mLuh+p+bfLJopRm5BL9L8vMDxrl8CX20PZdCSJx9uiJ\naUAqjl+cGjGgfy9vUB63jLK/7x+v04XpP2C1pmleO7FxU70mwnTVBWXX0eyT\n/ddzx3EXXj3PaozmiqhNx/QXF6UPwFMcktwW0ngA5Cr5j3fUv3IoRaIe4aQe\n+nFbrxEF1nGYwSum7rpvLEQM7np/1q1Du+9sKlEyIeydIS8KsslDGTVEoZe4\nBY3zVnOrSCWQ4/GOjU2JKHNv7qNMfn+gPNsyYC13Y+l7AJk6uK+cns7Cptn+\n2wmh\r\n=7tC9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCG4O/JEaVQdmMXm+X7x+C2eKJXf/5lcv66y9Qsf+1l6gIhAI9+mIuy9dKzApDCfMKB47yKOV87CM/Lmaps/DLsIF8I"}]},"directories":{},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloneable-readable_2.1.0_1610033085762_0.7498799010940709"},"_hasShrinkwrap":false},"0.4.0":{"name":"cloneable-readable","version":"0.4.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.1.0","standard":"^8.0.0","tap-spec":"^4.1.1","tape":"^4.6.0"},"dependencies":{"inherits":"^2.0.1","process-nextick-args":"^1.0.6","through2":"^2.0.1"},"gitHead":"23eb598b0fc27e3292bd1689a7692773be50800f","_id":"cloneable-readable@0.4.0","_shasum":"7ba99d6dd814e38b51b90f44e68e0e24ebcec71a","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"7ba99d6dd814e38b51b90f44e68e0e24ebcec71a","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-0.4.0.tgz","integrity":"sha512-PL++WmO5C5+I9GWnGKifai4cKkw4w2jJmztaYlq2BD7/mEDaGR2IBqJYZjlNeDLpBKFOLSQSegH8qV2sHiFkvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC3UwVrIGE2YmWW3PQImeqaf3EdVkeWzBMIlJdI2bO8MAiEAvUbWXoZcItvk2mMGVTsVSLBr+AWIhSgUu3ajRpXNpDg="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cloneable-readable-0.4.0.tgz_1474185268446_0.408287538215518"},"directories":{}},"0.5.0":{"name":"cloneable-readable","version":"0.5.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.1.0","standard":"^8.0.0","tap-spec":"^4.1.1","tape":"^4.6.0"},"dependencies":{"inherits":"^2.0.1","process-nextick-args":"^1.0.6","through2":"^2.0.1"},"gitHead":"eeacbed40312015c09c3a2805e860d0cb7336c66","_id":"cloneable-readable@0.5.0","_shasum":"ad47421f05a8a8ee64fbd21b02b2244409d43510","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"ad47421f05a8a8ee64fbd21b02b2244409d43510","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-0.5.0.tgz","integrity":"sha512-WikGxBIeJQ/d0ObXOCyMiQq3SpkRLDON7/9r552OPlogaMjYLngnONI94Y1K8kmk5DaoiKvI6nZTEa77nccFlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtcJhgb+e4SfUqQF3GMK3poauU5zND09OeOd/p3MiAYwIhAIlGAOCC7RVpDSt4iym8QDiLiCGo3nDJR5IX2AhriUzh"}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cloneable-readable-0.5.0.tgz_1474440194518_0.9048315470572561"},"directories":{}},"0.2.0":{"name":"cloneable-readable","version":"0.2.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.1.0","standard":"^8.0.0","tap-spec":"^4.1.1","tape":"^4.6.0"},"dependencies":{"inherits":"^2.0.1","pump":"^1.0.1","through2":"^2.0.1"},"gitHead":"bed59ae345db4a88ccc03759fb5227a3411e5097","_id":"cloneable-readable@0.2.0","_shasum":"107b411232fdb6163222250f6350fa49611128d7","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"107b411232fdb6163222250f6350fa49611128d7","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-0.2.0.tgz","integrity":"sha512-MuDVfW36rzSn74hpNjsbG7xTq5gLZpnQCTTIZ80+0WZLdMuwpD76WTwN9UOajaa8fI8jayF12xoIQm2M/Ubx2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuC3Tmfk/rqEAdcp6nPQSWOA0LJbWvNm5GlznEFPINRQIhAIP+lvCUnvjAq1z305ol8rwu+03yJHw/KQCZ9KD7gaiw"}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cloneable-readable-0.2.0.tgz_1472714017515_0.792123552877456"},"directories":{}},"0.3.0":{"name":"cloneable-readable","version":"0.3.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.1.0","standard":"^8.0.0","tap-spec":"^4.1.1","tape":"^4.6.0"},"dependencies":{"inherits":"^2.0.1","pump":"^1.0.1","process-nextick-args":"^1.0.6","through2":"^2.0.1"},"gitHead":"5897edd1ef6f79334cd32e919704d1991bb055d5","_id":"cloneable-readable@0.3.0","_shasum":"e2ac1fd2451cec1b139ef505b5c28eda41c7b969","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"e2ac1fd2451cec1b139ef505b5c28eda41c7b969","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-0.3.0.tgz","integrity":"sha512-odfmBemlQHNx4Ucy7UfKUpdRoRNOYB8ov1OnmuKRwdNOC5pIKVgkDpOCF82rnXvoiXu7hvYYGJy1QBSmHNhQPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvwAUBkCABL4a3MCEaIhRny6d8OffYUbi/G7iyDtu+9AiEAi92jy7fbjkYICZ/3k2+s3J6f+th02UZE1nR1ynBQ5Hg="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cloneable-readable-0.3.0.tgz_1473310399982_0.9754711699206382"},"directories":{}},"0.1.0":{"name":"cloneable-readable","version":"0.1.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.1.0","standard":"^6.0.8","tap-spec":"^4.1.1","tape":"^4.5.1"},"dependencies":{"inherits":"^2.0.1","pump":"^1.0.1","through2":"^2.0.1"},"gitHead":"c515e948726dd9759284652784cc5200cc211905","_id":"cloneable-readable@0.1.0","_shasum":"f6d5f98db8b5490ae42cdf8bab431a332c837ea6","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"f6d5f98db8b5490ae42cdf8bab431a332c837ea6","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-0.1.0.tgz","integrity":"sha512-qPv6ilRhXYiNELB/HgRn3esxfOaUjOWhqcZ9fFGnwB01OyNlSEnFkhAv3smTOR1ItkHiPBO/MwwSGeFWXjyvAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5DPCJkf6yTsNBDQNo9C7Ds8w9Buuv3ikyqEOnJqGuEAiEAntV3WVR0FEfJ4y9iZtMOpNn6tc7BVb9rZL3+Iw0J7wA="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cloneable-readable-0.1.0.tgz_1461661604229_0.2806196433957666"},"directories":{}},"1.1.2":{"name":"cloneable-readable","version":"1.1.2","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.3.5","standard":"^11.0.0","tap-spec":"^4.1.1","tape":"^4.9.0"},"dependencies":{"inherits":"^2.0.1","process-nextick-args":"^2.0.0","readable-stream":"^2.3.5"},"gitHead":"5890475314bfb2def062fd6d158c62cfec20ebdf","_id":"cloneable-readable@1.1.2","_npmVersion":"5.7.1","_nodeVersion":"8.10.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==","shasum":"d591dee4a8f8bc15da43ce97dceeba13d43e2a65","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-1.1.2.tgz","fileCount":7,"unpackedSize":21324,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSPlQsnNntRNdjqbUgekQKbfYnEegjJYzWUkqpke+QoAiBcVPiB4+TIQ8PZJWFYe7rvyhw3+MHM6qp31TneeNG5XQ=="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloneable-readable_1.1.2_1521057710710_0.17257328641252445"},"_hasShrinkwrap":false},"1.1.3":{"name":"cloneable-readable","version":"1.1.3","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","pump":"^3.0.0","standard":"^11.0.0","tap-spec":"^4.1.1","tape":"^4.9.0"},"dependencies":{"inherits":"^2.0.1","process-nextick-args":"^2.0.0","readable-stream":"^2.3.5"},"readme":"# cloneable-readable\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/mcollina/cloneable-readable.svg)](https://greenkeeper.io/)\n\n[![Build Status](https://travis-ci.org/mcollina/cloneable-readable.svg?branch=master)](https://travis-ci.org/mcollina/cloneable-readable)\n\nClone a Readable stream, safely.\n\n```js\n'use strict'\n\nvar cloneable = require('cloneable-readable')\nvar fs = require('fs')\nvar pump = require('pump')\n\nvar stream = cloneable(fs.createReadStream('./package.json'))\n\npump(stream.clone(), fs.createWriteStream('./out1'))\n\n// simulate some asynchronicity\nsetImmediate(function () {\n  pump(stream, fs.createWriteStream('./out2'))\n})\n```\n\n**cloneable-readable** automatically handles `objectMode: true`.\n\nThis module comes out of an healthy discussion on the 'right' way to\nclone a Readable in https://github.com/gulpjs/vinyl/issues/85\nand https://github.com/nodejs/readable-stream/issues/202. This is my take.\n\n**YOU MUST PIPE ALL CLONES TO START THE FLOW**\n\nYou can also attach `'data'` and `'readable'` events to them.\n\n## API\n\n### cloneable(stream)\n\nCreate a `Cloneable` stream.\nA Cloneable has a `clone()` method to create more clones.\nAll clones must be resumed/piped to start the flow.\n\n### cloneable.isCloneable(stream)\n\nCheck if `stream` needs to be wrapped in a `Cloneable` or not.\n\n## Acknowledgements\n\nThis project was kindly sponsored by [nearForm](http://nearform.com).\n\n## License\n\nMIT\n","readmeFilename":"README.md","gitHead":"88e32675c5816bccda34983ff8fd1d9cd1f027fa","_id":"cloneable-readable@1.1.3","_nodeVersion":"10.15.2","_npmVersion":"6.9.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==","shasum":"120a00cb053bfb63a222e709f9683ea2e11d8cec","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-1.1.3.tgz","fileCount":7,"unpackedSize":21807,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6XwGCRA9TVsSAnZWagAAsekP/0tT7MTpMiNVmO8CR3Sm\nOh5g5oZBTJIlm8MlXAWP3SI/PwOD1F84bxs12ausBeAdsO65qB5uW+rhnI6w\n+a1nkVIi0LPyLX+IKSbg8X08LjDG/lWZ8/olfcwQO4DfMv6Y4jL+pu8eRPoY\nOTibi9HB8kEtdPa2p/KIG/yaJLdlGbCoOH3rnSTFNbNR0ZTpkDOaeW17aLFu\nfmEiBaiR1NEKeT6ON2QZyw8sZnAiXMFFS6tWc2IWEZq38iImV7y0ftMa2QK0\nJhIoIA5dEf/mhqGcVSgKdN50N6buCmbl+QB3yy41XwAJUNNK+jK36w/qIofk\nQ9wQHPrfNb90AGYJx7WR2ONfDY4chwZshK65tR0Imd67JEDuJZ0GMM28hs2+\nRCp6FMmxX+QupG7j1awcVLJpAplsiaE3atYFT0dcL1aqQJjVzcHCbvR+Lvri\nETSoUI6JYDg5vvhfclcIykAWP5+vgxML/sjvvJABGfQH/CshijC84+v5UFUV\nTrfvAo4uRpDn61XwEDhS2OBISIWcARnHO+z5iI6j3O/75xlnIYyVojJNsrMF\nFLjx6dIN0xWW6L9URh6y4ah51FM+ye11QBpcXyFqZ/LZlLSuypyRFsntzNiy\nqnYAOl7NEkXdt7Iw3Ug+NzQ7oDj8D5K+VD0K74Ciae2IfpafJ7VQm+yXOZhc\nwPa6\r\n=gh86\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJYkTasgiELePxMq7UA+pcQTxgNF/YSDvd6gJg0aNEHgIgGaUwao5wvJ2dybqhhL3H62fFFelbvhxTqa+Tak9eB2g="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloneable-readable_1.1.3_1558805510276_0.7873442131555235"},"_hasShrinkwrap":false},"3.0.0":{"name":"cloneable-readable","version":"3.0.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^2.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","standard":"^17.0.0","tap-spec":"^5.0.0","tape":"^5.0.0"},"dependencies":{"readable-stream":"^4.0.0"},"gitHead":"40384db976a68c2fba3cb373ed804b386ade70d5","_id":"cloneable-readable@3.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-Lkfd9IRx1nfiBr7UHNxJSl/x7DOeUfYmxzCkxYJC2tyc/9vKgV75msgLGurGQsak/NvJDHMWcshzEXRlxfvhqg==","shasum":"390b00c3627d961afcb8192b5bad21e09490c591","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-3.0.0.tgz","fileCount":8,"unpackedSize":23664,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIByO9ACAtjfft5ec9FBhbEGtoEgQahiG+0pQVvEG+f+dAiEAmlPgvUuKdTC4Fdeaxc94CRUwWDLO6TdNZpJQLF8PJB0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivM1aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpK+BAAhjqD+lLf7WBW78lWDEnHdlaaFo32lx6z+2md4Px4B8WxzSRz\r\nzF54RPyP4jdJE7T1jECuQEv7k1SZkhZ0i5L4nBRHVfZGH6ce05OyNQq8fFJo\r\nh0u0OVZANm0xHch9Sdqkng02Qncx6UKOFTmTi9JzOnJUtKZ9H5ONDfnyryFN\r\nbzd6Yj1A+j6kegxbpNyEw4/ETvh+lUojEWT5egkRcHL4xk7UTlveTWVWfN3W\r\nE4nJru5QDXOQ5flHMKvxxf9ctpRZTjaGfAYbPFnWsMsE0/aojhoN0Lclmu+T\r\nX4ByzHKFuU36J5+FNHTRBQdf0GApvUf+kEMM3+RWtKndGXZI9+E9kZKVUUAx\r\nFJQd7W6Fs+eGjMV3RI5f4wAGTqKATFleIyJbDXUhFfe8vGyhclfMyutUWoW6\r\ncvaYfHaffFN5KRVv46GyeNEgNg28T15uIdNuJ1dDtNzQXmapVot/wmcECNGK\r\nrHhLQZ45yYYLD5lAkbxQ3VzqKB4Txx+bYCEtajJNkKxFOJ/iIN3yFuWr7qCl\r\npQuy8kDPGE/S7GsKegUgf+krdfuvhopZzrRD8wd9VeW516Xp2A4o6RstOj3C\r\neMrNPub3mE8Dsed8w14yw63BJX/H9Xe0nOya2572i60QnvF06SPvB25+QH4D\r\n8tPd16hUFeDrREZJ0HRZJ3q7ROLWJsXSCuM=\r\n=V0WB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloneable-readable_3.0.0_1656540506147_0.35384435665964586"},"_hasShrinkwrap":false},"1.0.0":{"name":"cloneable-readable","version":"1.0.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.1.0","standard":"^8.0.0","tap-spec":"^4.1.1","tape":"^4.6.0"},"dependencies":{"inherits":"^2.0.1","process-nextick-args":"^1.0.6","through2":"^2.0.1"},"gitHead":"9d887ebaec81a5f59593b6d7b69c3c522bf5d425","_id":"cloneable-readable@1.0.0","_shasum":"a6290d413f217a61232f95e458ff38418cfb0117","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"a6290d413f217a61232f95e458ff38418cfb0117","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-1.0.0.tgz","integrity":"sha512-jgnbzKeJ9tATVHpX3ONN+xL8dtMG87Sgg949GhfW2YeXF8WP9BOgJujThSIZjXJpePa9KiYECFGEBDnYb3DidA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEQiDsBFlMy5ahHqrTEiE3B/0dDdU06PUexHzojnu//ZAiA3QLwlBHyvR43QtV7XqWO40OMy8+84veA0HESdPVNIJg=="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cloneable-readable-1.0.0.tgz_1477399717263_0.541040712967515"},"directories":{}},"1.1.0":{"name":"cloneable-readable","version":"1.1.0","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.3.5","standard":"^11.0.0","tap-spec":"^4.1.1","tape":"^4.9.0"},"dependencies":{"inherits":"^2.0.1","process-nextick-args":"^2.0.0"},"gitHead":"48ab14dcffd1b96685cd75e42753929dd4a2090c","_id":"cloneable-readable@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-0HmMsN7otd7N5xnU4aF9W4eMiX6AHuS5lNjBxws4YxkNAEt7r5EG824VdchGEwpJWKHhA4UPKwZN17cRCQBVCQ==","shasum":"00dab54fbeeedc2c5e2b755f6cfb4195cca51803","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-1.1.0.tgz","fileCount":7,"unpackedSize":20306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1JqDgqrtrftJh1ZigCorNAjU/C1KJKL6X+pd0+yi+hAIgbrpy1J6beF0uNyFOX4nNYV58tTsKz5h5ubSef2hp5rY="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloneable-readable_1.1.0_1520420166124_0.023788489691681125"},"_hasShrinkwrap":false},"1.1.1":{"name":"cloneable-readable","version":"1.1.1","description":"Clone a Readable stream, safely","main":"index.js","scripts":{"test":"standard && tape test.js | tap-spec"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/mcollina/cloneable-readable.git"},"keywords":["readable","stream","clone"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/cloneable-readable/issues"},"homepage":"https://github.com/mcollina/cloneable-readable#readme","devDependencies":{"flush-write-stream":"^1.0.0","from2":"^2.1.1","pre-commit":"^1.1.2","readable-stream":"^2.3.5","standard":"^11.0.0","tap-spec":"^4.1.1","tape":"^4.9.0"},"dependencies":{"inherits":"^2.0.1","process-nextick-args":"^2.0.0","readable-stream":"^2.3.5"},"gitHead":"146631cd395ff4363299766d756a8aa2a99c1a09","_id":"cloneable-readable@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-DNNEq6JdqBFPzS29TaoqZFPNLn5Xn3XyPFqLIhyBT8Xou4lHQEWzD6FinXoJUfhIfWX3aE1JkRa3cbWCHFbt1g==","shasum":"c27a4f3a943ca37bed9b01c7d572ee61b1302b15","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/cloneable-readable/-/cloneable-readable-1.1.1.tgz","fileCount":7,"unpackedSize":20339,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE3Sg9mwzzd1faZKFWQU9vv2gPM+QDR3YKTewiPsOnZwIgTfDgrr7OC6AWrsF0HhJTJ9wDdvSMmO4LJxow0DRUZvU="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cloneable-readable_1.1.1_1520423201523_0.48061495956447065"},"_hasShrinkwrap":false}},"name":"cloneable-readable","time":{"2.0.0":"2018-08-13T09:38:20.847Z","2.0.1":"2019-05-23T15:39:37.508Z","2.1.0":"2021-01-07T15:24:45.889Z","0.4.0":"2016-09-18T07:54:30.280Z","0.5.0":"2016-09-21T06:43:18.455Z","created":"2016-04-26T09:06:46.503Z","0.2.0":"2016-09-01T07:13:39.121Z","0.3.0":"2016-09-08T04:53:20.206Z","0.1.0":"2016-04-26T09:06:46.503Z","1.1.2":"2018-03-14T20:01:50.758Z","1.1.3":"2019-05-25T17:31:50.390Z","3.0.0":"2022-06-29T22:08:26.292Z","modified":"2025-05-13T17:19:14.000Z","1.0.0":"2016-10-25T12:48:39.281Z","1.1.0":"2018-03-07T10:56:06.159Z","1.1.1":"2018-03-07T11:46:42.793Z"},"readmeFilename":"README.md","homepage":"https://github.com/mcollina/cloneable-readable#readme"}