{"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":{},"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","publish_time":1516099878764,"_cnpm_publish_time":1516099878764,"dist-tags":{"1.x":"1.1.4","latest":"2.0.1"}}