{"_id":"gulp-clone","_rev":"1759757","name":"gulp-clone","description":"Clone files in memory in a gulp stream","dist-tags":{"1.x":"1.1.4","latest":"2.0.1"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"time":{"modified":"2026-11-23T09:16:35.000Z","created":"2014-02-13T21:10:52.792Z","2.0.1":"2018-01-16T10:51:18.764Z","1.1.4":"2018-01-16T10:49:13.100Z","1.1.3":"2018-01-15T22:15:17.499Z","2.0.0":"2018-01-15T16:38:21.067Z","1.1.2":"2018-01-15T16:31:14.776Z","1.1.1":"2018-01-02T15:30:46.893Z","1.1.0":"2018-01-02T15:25:35.952Z","1.0.0":"2014-04-06T14:50:22.150Z","0.1.0":"2014-02-13T21:10:52.792Z"},"users":{"zibe":true,"joaocunha":true,"ungurys":true,"liunian":true},"author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone.git"},"versions":{"2.0.1":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"2.0.1","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone.git"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"plugin-error":"^0.1.2","through2":"^2.0.3"},"devDependencies":{"vinyl":"^2.1.0","chai":"^4.1.2","mocha":"^4.1.0"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"release":{"branch":"master"},"publishConfig":{"tag":"latest"},"keywords":["gulpplugin","clone"],"gitHead":"4476fcf34a5336c2d33c2fc4a6ab2cd163e302e7","_id":"gulp-clone@2.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"mariocasciaro","email":"contact@mariocasciaro.me"},"dist":{"integrity":"sha512-SLg/KsHBbinR/pCX3PF5l1YlR28hLp0X+bcpf77PtMJ6zvAQ5kRjtCPV5Wt1wHXsXWZN0eTUZ15R8ZYpi/CdCA==","shasum":"cf4ecb28ca46d032f6949271e8bf7986e78e6ff9","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIErTxEgQCG/MeBDpIsWjs4dpQ7nZhH0UCpTR6wq/JXwdAiBnQ6FNB2V9VLpnn7gYjfKqjzQjozCor6AEyw5JSqxXfA=="}],"size":3005,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-2.0.1.tgz"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-clone-2.0.1.tgz_1516099877833_0.7116377062629908"},"directories":{},"publish_time":1516099878764,"_cnpm_publish_time":1516099878764},"1.1.4":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"1.1.4","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone.git"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"gulp-util":"~2.2.14","through2":"~0.4.1"},"devDependencies":{"chai":"^4.1.2","mocha":"^4.1.0"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"release":{"branch":"1.x"},"publishConfig":{"tag":"1.x"},"keywords":["gulpplugin","clone"],"gitHead":"6919b3ccf8f0b5b8512cce7460196d2943c329e2","_id":"gulp-clone@1.1.4","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"mariocasciaro","email":"contact@mariocasciaro.me"},"dist":{"integrity":"sha512-k54JS9IzwUH3L5MT0jL4tvjrSLTTkpqbDmU22I0HiUcRiMS+QhggHsbb0vgOCEHR/3A9SEBawxPv/5Mr5L+ZsA==","shasum":"0765fe0a142ec08ca4c66acc72daa65b49a1cc7e","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-1.1.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGf0gLykchuPUhpvtPnKG/Y00Ro1PcDiWML+Cqj4ZwM2AiB7XMJe4GNPU0dfg3m7y13Re7upK73umUytFEp7dQfAag=="}],"size":2889,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-1.1.4.tgz"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-clone-1.1.4.tgz_1516099750078_0.5633867457509041"},"directories":{},"publish_time":1516099753100,"_cnpm_publish_time":1516099753100},"1.1.3":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"1.1.3","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone.git"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"gulp-util":"~2.2.14","through2":"~0.4.1"},"devDependencies":{"chai":"^4.1.2","mocha":"^4.1.0"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"keywords":["gulpplugin","clone"],"gitHead":"ebfed1c713d65ee9d114910994f70db0283ad7d0","_id":"gulp-clone@1.1.3","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"mariocasciaro","email":"contact@mariocasciaro.me"},"dist":{"integrity":"sha512-vyl02nftVEX1Xe/nRZf33KyynDsZGn2SEx8a4ql7NRNyp7/JndqTVAX6uB3PYfJXrnIfWOLfIvUdOvlQ6Je8gQ==","shasum":"51ac0ddb14cb9b77775ab8a8106caa4962b6d0af","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-1.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTJvBXz9AwZXxO91gIiXmQ5jujLi8NYnkuK4WmW6K8tAiEA/IYOfldH1BXF68nBBJbaydSdICbr5u+QeZshEkA+MSY="}],"size":2861,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-1.1.3.tgz"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-clone-1.1.3.tgz_1516054516665_0.2476260969415307"},"directories":{},"publish_time":1516054517499,"_cnpm_publish_time":1516054517499},"2.0.0":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"2.0.0","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone.git"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"plugin-error":"^0.1.2","through2":"^2.0.3"},"devDependencies":{"vinyl":"^2.1.0","chai":"^4.1.2","mocha":"^4.1.0"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"keywords":["gulpplugin","clone"],"gitHead":"325278297f4cc67c07e3cc0b462528ef00adc9c0","_id":"gulp-clone@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mariocasciaro","email":"contact@mariocasciaro.me"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"dist":{"integrity":"sha512-LUiIuiJcwHXnpCCGlQWswF5c/tqNrhM9MS+Frl02XGT42IUAYUOd8wqqabI1uz9ZNxqIa+r3ZMHQRhULxpz7Jg==","shasum":"2b7d58049c3b598da24c1522f07c2efdb6e4ccbf","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXg0ruUE95egtC20poRR60D0qPheDbmHr8dvI3CjiKJQIhANFrT3F8CUJ1CTcGgVbCz/ZzrJTT31Ppvu490wcMPk7U"}],"size":2914,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-2.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-clone-2.0.0.tgz_1516034300021_0.1468425360508263"},"directories":{},"publish_time":1516034301067,"_cnpm_publish_time":1516034301067},"1.1.2":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"1.1.2","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone.git"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"gulp-util":"~2.2.14","through2":"^2.0.3"},"devDependencies":{"chai":"^4.1.2","mocha":"^4.1.0"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"keywords":["gulpplugin","clone"],"gitHead":"7d98d2114c4846bf091a6ad7a8ac2f26fc35b98b","_id":"gulp-clone@1.1.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"mariocasciaro","email":"contact@mariocasciaro.me"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"dist":{"integrity":"sha512-px4a5uoaoDgIpGTKy/j4KdxAOU8mLK4SpEaJODbltzwzTb7x+7Wtq45fnLZmLPKmEH3KO5Kx136fIQCt+ggcaQ==","shasum":"a7ee1888201ede681771bef994deb9db90754675","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-1.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAn7/H0VAMZqDvnuPXUlQ4cyBziN3Jc+Zx8LJHzjDUN+AiEAjW3gQ7TtPY8N8yN0VujrTb7Gq7UHUpslhvlSjHZzEZ0="}],"size":2793,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-1.1.2.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-clone-1.1.2.tgz_1516033873849_0.8313680519349873"},"directories":{},"publish_time":1516033874776,"_cnpm_publish_time":1516033874776},"1.1.1":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"1.1.1","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone.git"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"chai":"^4.1.2","mocha":"^4.1.0","plugin-error":"^0.1.2","through2":"^2.0.3"},"devDependencies":{"vinyl":"^2.1.0"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"keywords":["gulpplugin","clone"],"gitHead":"6ebd1e42d982673f1fec5c0b19fe884b83190eb8","_id":"gulp-clone@1.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"mariocasciaro","email":"contact@mariocasciaro.me"},"dist":{"integrity":"sha512-+9z6YKyup0pxL1nD9Hw5WjC29d280dsGkegagzt4xKAOvroyzZlA8Bs9MYs2WSSFIDqmcftMUVN/oentgBv69A==","shasum":"048f55ad509a0145e5e2787db09a72848dc67017","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGl3SnyhtS++0Hwp9KP8tbzeWLoMwb2dQ5x1S5InHLVwIgDe5PrruYFZtsReaUldrBkLCpO9DXIUXuBn2h9TZNST4="}],"size":2845,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-1.1.1.tgz"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-clone-1.1.1.tgz_1514907046001_0.7583734416402876"},"directories":{},"publish_time":1514907046893,"_cnpm_publish_time":1514907046893},"1.1.0":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"1.1.0","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone.git"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"plugin-error":"^0.1.2","through2":"^2.0.3"},"devDependencies":{"chai":"^1.9.0","mocha":"^1.17.1","vinyl":"^2.1.0"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"keywords":["gulpplugin","clone"],"gitHead":"4ba729d2e4758c042c6bf8792bd32cb14d13973a","_id":"gulp-clone@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"mariocasciaro","email":"contact@mariocasciaro.me"},"dist":{"integrity":"sha512-nCnxLNY9qAni+baOTpnQgXZfxIyFci7btObvwwUMXCOT5KxNorRaIte37SM08Yd+f4wuDn5F2rNj7ub8RCrzSQ==","shasum":"270e027540abdf2136f8214906ddb739b27c3cfe","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDsp7/jEsoDFsTOG6RFoV/+x1y+CGo7C/WZnfVGSM1JAiEApESgTq4XqrS2lYmE7cKgBIAxDi4eXEdtHSHcUvQBcvA="}],"size":2846,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-1.1.0.tgz"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-clone-1.1.0.tgz_1514906735055_0.7474131199996918"},"directories":{},"publish_time":1514906735952,"_cnpm_publish_time":1514906735952},"1.0.0":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"1.0.0","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"gulp-util":"~2.2.14","through2":"~0.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"keywords":["gulpplugin","clone"],"_id":"gulp-clone@1.0.0","dist":{"shasum":"9ae6c656bd9c4f369ee805eef565786bc81005b0","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-1.0.0.tgz","integrity":"sha512-/TI0F0L7sLfxb/Ib85X+5wCTw7f17MLzD7CV+nrmB4hqLDWjnPVL7issTtD2qqPTCbwGsHepAGQDx6HoTrLXxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI6VEAqn+6jSdK3b0n6HHaD2+Uwp4w93Pg4OZfb0NzKwIgBlFUeFrIGMhZpYB245nKNwTjMMTz8p74jEzidEmZXUg="}],"size":2845,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"directories":{},"publish_time":1396795822150,"_cnpm_publish_time":1396795822150},"0.1.0":{"name":"gulp-clone","description":"Clone files in memory in a gulp stream","version":"0.1.0","homepage":"https://github.com/mariocasciaro/gulp-clone","author":{"name":"Mario Casciaro"},"repository":{"type":"git","url":"git://github.com/mariocasciaro/gulp-clone"},"bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"},"licenses":[{"type":"MIT","url":"https://github.com/mariocasciaro/gulp-clone/blob/master/LICENSE"}],"dependencies":{"gulp-util":"~2.2.14","through2":"~0.4.1"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"scripts":{"test":"node_modules/mocha/bin/_mocha test.js --reporter spec"},"keywords":["gulpplugin","clone"],"_id":"gulp-clone@0.1.0","dist":{"shasum":"bdeee535f9d6a0acfc449409c2ba8596978a75ce","tarball":"http://registry-npm.ywwl.com/gulp-clone/download/gulp-clone-0.1.0.tgz","integrity":"sha512-vbytKDL0wSqnCx3R54hmQEFizZ8NU0caaYkZsBO3x0QFRc8y3SXS59piKMhtQd95zUFkKXB5YpfhGYGxUggZMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDToLjRAS1BuMQ8elbbqcHVbonSxU0sgBRSaKt7+9Y4lwIhALvi4/eCuveXxTvIu6F31U6C6K7FzOQyNEC+rtB9JNNX"}],"size":2450,"noattachment":false,"key":"/gulp-clone/-/gulp-clone-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"},"maintainers":[{"name":"mariocasciaro","email":"mariocasciaro@gmail.com"}],"directories":{},"publish_time":1392325852792,"_cnpm_publish_time":1392325852792}},"readme":"# [gulp](https://github.com/wearefractal/gulp)-clone [![Build Status](https://secure.travis-ci.org/mariocasciaro/gulp-clone.png?branch=master)](https://travis-ci.org/mariocasciaro/gulp-clone) [![NPM version](https://badge.fury.io/js/gulp-clone.png)](http://badge.fury.io/js/gulp-clone) [![Dependency Status](https://gemnasium.com/mariocasciaro/gulp-clone.png)](https://gemnasium.com/mariocasciaro/gulp-clone)\n\n> Duplicate files in memory.\n\n## Install\n\nInstall with [npm](https://npmjs.org/package/gulp-clone).\n\n```\nnpm install --save-dev gulp-clone\n```\n\n## Changelog\n* 2.0.0: **Possible Breaking change** - The dependency from gutil has been dropped, this has been reported to cause a breaking change in some circumstances. Please continue to use the 1.0 branch if that would cause problems in your setup.\n* 1.0.0: **Breaking change** - There is a new operating mode, as explained in the 1st example. The old\n operating mode is still available under the `clone.sink()` property.\n\n## Example\n\ngulp-clone is useful in all those situations where you perform a destructive operation on your files (as for example concat) and you want to keep your original files for further processing or saving.\n\n```js\nvar gulp = require('gulp');\nvar concat = require('gulp-concat');\nvar clone = require('gulp-clone');\nvar es = require('event-stream');\n\ngulp.task('default', function () {\n    var scripts = gulp.src('assets/**/*.js');\n\n    var bundle = scripts.pipe(clone())\n      .pipe(concat('bundle.js'));\n\n    // Merge the streams together, then write them to the out folder\n    return es.merge(scripts, bundle).pipe(gulp.dest('out'));\n});\n```\n\n##Example - Bypass mode\n\n```js\nvar gulp = require('gulp');\nvar concat = require('gulp-concat');\nvar clone = require('gulp-clone');\n\nvar cloneSink = clone.sink();\n\ngulp.task('default', function () {\n  gulp.src('assets/**/*.js')\n    .pipe(cloneSink)                //<- clone objects streaming through this point\n    .pipe(concat(\"bundle.js\"))\n    .pipe(cloneSink.tap())          //<- output cloned objects + bundle.js\n    .pipe(gulp.dest('out/'));       //<- saves bundle.js + original files in one pass\n});\n```\n\n## License\n\n[MIT](http://en.wikipedia.org/wiki/MIT_License) @ Mario Casciaro\n","_attachments":{},"homepage":"https://github.com/mariocasciaro/gulp-clone","bugs":{"url":"https://github.com/mariocasciaro/gulp-clone/issues"}}