{"_id":"gulp-fn","_rev":"7-188c157146fd297acea4eca0b7455bcb","name":"gulp-fn","description":"gulp-fn - gulp plugin used in order to run custom callback functions per file","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.0":{"name":"gulp-fn","version":"0.0.0","description":"gulp-fn - gulp plugin used in order to run a custom function","main":"gulp-fn.js","repository":{"type":"git","url":"https://github.com/ThierrySpetebroot/gulp-fn.git"},"directories":{"test":"tests"},"scripts":{"test":"jsamine-node ./tests/"},"keywords":["gulp","plugin","function","js","javascript"],"author":{"name":"Thierry Spetebroot"},"license":"ISC","dependencies":{"gulp":"^3.6.2","through2":"^0.4.2","gulp-util":"^2.2.14"},"bugs":{"url":"https://github.com/ThierrySpetebroot/gulp-fn/issues"},"homepage":"https://github.com/ThierrySpetebroot/gulp-fn","_id":"gulp-fn@0.0.0","dist":{"shasum":"354393f0830916a195d73000ff06eabd9b672d48","tarball":"https://registry.npmjs.org/gulp-fn/-/gulp-fn-0.0.0.tgz","integrity":"sha512-dYv9M1At61jARE4/gh00QdxO0p5v9R4tMBpx2l/ZwNms1SYp2gqzxTtF2NQ9esc9BRYgIv6/LY2LAq2Q5MMc/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGj/tIx5qIOzAcRblr3n/EcfGUp0fdM+T29TZRGRLS9xAiEAr1dEOEsAGzfRuXNvVzLoTHEvMlhW/vaq7Av+0q/HXC8="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"thierry.spetebroot","email":"thierry.spetebroot@gmail.com"},"maintainers":[{"name":"thierry.spetebroot","email":"thierry.spetebroot@gmail.com"}]},"0.0.2":{"name":"gulp-fn","version":"0.0.2","description":"gulp-fn - gulp plugin used in order to run custom functions per file","main":"gulp-fn.js","repository":{"type":"git","url":"git+https://github.com/ThierrySpetebroot/gulp-fn.git"},"scripts":{"test":"jasmine"},"keywords":["gulp","plugin","function","js","javascript"],"author":{"name":"Thierry Spetebroot"},"license":"ISC","dependencies":{"gulp":"^3.6.2","through2":"^0.4.2","plugin-error":"^1.0.1"},"devDependencies":{"event-stream":"^3.3.4","jasmine":"^3.1.0"},"gitHead":"a5ed6c59679f9e98c5c9d03a3341ebd6951f9935","bugs":{"url":"https://github.com/ThierrySpetebroot/gulp-fn/issues"},"homepage":"https://github.com/ThierrySpetebroot/gulp-fn#readme","_id":"gulp-fn@0.0.2","_npmVersion":"5.7.1","_nodeVersion":"9.6.1","_npmUser":{"name":"thierry.spetebroot","email":"thierry.spetebroot@gmail.com"},"dist":{"integrity":"sha512-AxsqUweFAhSD9p2iyFHHlghDMcfq+4LRaNqB62BoeOVcYd1nOo/0yGa8dO87POUcYzVpqtvn2bAUq2YfRuyuMA==","shasum":"035811236c049a2231d3dcef5aafbba2be541920","tarball":"https://registry.npmjs.org/gulp-fn/-/gulp-fn-0.0.2.tgz","fileCount":7,"unpackedSize":4313,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdZQ1MoxBwgPeiAR5KABqj+nlyAGgi4if/ccmzxXOkQAiAbom05kXBoqOGqiFHaAM4tBemmgt+WNehBvMuzPU8jaA=="}]},"maintainers":[{"name":"thierry.spetebroot","email":"thierry.spetebroot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-fn_0.0.2_1519839462055_0.8271940466324788"},"_hasShrinkwrap":false},"0.0.3":{"name":"gulp-fn","version":"0.0.3","description":"gulp-fn - gulp plugin used in order to run custom callback functions per file","main":"gulp-fn.js","repository":{"type":"git","url":"git+https://github.com/ThierrySpetebroot/gulp-fn.git"},"scripts":{"test":"jasmine"},"keywords":["gulp","gulpfn","gulp-fn","gulp-callback","gulp-plugin","gulpplugin","plugin","function","callback","js","javascript","ts","typescript"],"author":{"name":"Thierry Spetebroot"},"license":"ISC","dependencies":{"plugin-error":"^1.0.1","through2":"^0.4.2"},"devDependencies":{"event-stream":"^3.3.4","gulp":"^3.9.1","jasmine":"^3.1.0"},"gitHead":"89d16bfef3fcafc27fba7bdc92d042c2fcd7816c","bugs":{"url":"https://github.com/ThierrySpetebroot/gulp-fn/issues"},"homepage":"https://github.com/ThierrySpetebroot/gulp-fn#readme","_id":"gulp-fn@0.0.3","_npmVersion":"5.7.1","_nodeVersion":"9.6.1","_npmUser":{"name":"thierry.spetebroot","email":"thierry.spetebroot@gmail.com"},"dist":{"integrity":"sha512-vzdbGZnU6fVXnBOwiDQubGaHW1A9y/O6Hz9cwZ+Ol8BCSOu/eFtz2F6+mzoHeQs+AuWl4f27eMxiVeUWF7iT1A==","shasum":"ca32b9245419f2e1a8d7178874ac92eea191e9ee","tarball":"https://registry.npmjs.org/gulp-fn/-/gulp-fn-0.0.3.tgz","fileCount":9,"unpackedSize":6124,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRoRRCRA9TVsSAnZWagAAVXsP+wZk/Pr+FlBClmAbFI6W\nlsxKkNMe2DCAYSIe9+ht64m+CrXIO5GgM7SVK6Km8UbubFhvmj0TBRlnIR+8\niHAo2Io772YOqwWbEXQTajUGz8rjl8WQmTsuj+KOB+FVDUPG1k9VrSvqh9mO\n0Jsw3IjPVRhQ/XYJsbJCMeu9oj+bncTjMzzv6TTOXhpMQKxAg+rm7u5tOgZj\npLYU0cx276Hq72wHt4ZC2gdJh9BlILpEqk9Kfs0DRE777rrmxQO4t9teRdqO\n6tYCBhZPVpScj7pq4R2XEoSifnNd5Jub8Dg/Ww8zXkzBLd2Ydo8J57AUWXjk\nRbHhBSPsA5aZNo1dBDUJ6Te9cl4r5qYkNO/6oOFwqplOIl7HDN3daRP3haNM\nFutitTcMLO0iQI5K/jDBEHjiNAcbswCI73soP5yQBeEi91BMxklYH+q9iVL/\nUWbI25BRe+Um1YHy+VnT10GRGVy11T3Ea29BjWaMRfLtb5/401szg9q+5v0F\nOqYwlQKYbAB/5Yoku+mB9zfYO+M6nYPGiEDe/96UsbGIplb09SZtl5ciT+Ba\nX0q1PBRczDReJoqHaL1eQ+jgU/X5/tlugnstFZg2F4Qg01kOAItW4lFNV1ND\n3H/KZeOzcNzVYA96J0jPZa6w5i6Cknvc1OzJUsyoV06wv2xssJ16wXsjV/0t\ng0fr\r\n=CZen\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5rLad9LrkPkngSxl/6LTFok3QU3g6gAPiGwoL18WCPAiEAqECEn00GeKDO1rwVjRfUQpZLz9G/tbvD6aFtkPpgAgI="}]},"maintainers":[{"name":"thierry.spetebroot","email":"thierry.spetebroot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-fn_0.0.3_1531348049774_0.10070296097127707"},"_hasShrinkwrap":false}},"readme":"# gulp-fn\nA simple function injection plugin for [gulp](http://gulpjs.com/)\n\nIt allows to run custom callback functions in the gulp pipeline without having to deal with the NodeJS event-stream.\n\n## usage\nInstall npm package\n\n```\nnpm install gulp-fn\n```\n\nUse it in your Node.js code\n\n```js\nvar gulp    = require('gulp');\nvar gulpFn  = require('gulp-fn');\n\ngulp.task('hello_gulp-fn', function() {\n    gulp.src('./gulp-fn.js')\n      .pipe(gulpFn(function(file, enc) {\n          console.log(\"Hello \" + file.path);\n      })\n    );\n});\n```\n\n## API\n```js\ngulpFn(fn, filter = true) : Transform\n```\n\n- fn, `function(file, enc) => void` - required - callback function invoked for each file in the stream.\n- filter, `boolean - default: true` - if `true` pushes the file in the pipeline automatically (it is not possible to remove or add file to the stream).\n\n\nNOTE: to add a file to the next step of the pipeline, you need to set the `filter` argument to `false` and use `this` (i.e., `this.push(file)` will add the file - done for every file by default or if `filter` is set to `true`).\n","maintainers":[{"name":"thierry.spetebroot","email":"thierry.spetebroot@gmail.com"}],"time":{"modified":"2022-06-18T17:06:19.606Z","created":"2014-05-29T21:18:14.876Z","0.0.0":"2014-05-29T21:18:14.876Z","0.0.2":"2018-02-28T17:37:44.114Z","0.0.3":"2018-07-11T22:27:29.905Z"},"homepage":"https://github.com/ThierrySpetebroot/gulp-fn#readme","keywords":["gulp","gulpfn","gulp-fn","gulp-callback","gulp-plugin","gulpplugin","plugin","function","callback","js","javascript","ts","typescript"],"repository":{"type":"git","url":"git+https://github.com/ThierrySpetebroot/gulp-fn.git"},"author":{"name":"Thierry Spetebroot"},"bugs":{"url":"https://github.com/ThierrySpetebroot/gulp-fn/issues"},"license":"ISC","readmeFilename":"README.md"}