{"_id":"transfob","_rev":"373943","name":"transfob","description":"get a transform stream, like through2.obj()","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"time":{"modified":"2021-07-29T06:07:18.000Z","created":"2016-11-02T13:11:30.814Z","1.0.0":"2016-11-02T13:11:30.814Z"},"users":{},"author":{"name":"David DeSandro"},"repository":{"type":"git","url":"git+https://github.com/metafizzy/transfob.git"},"versions":{"1.0.0":{"name":"transfob","version":"1.0.0","description":"get a transform stream, like through2.obj()","main":"transfob.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/metafizzy/transfob.git"},"keywords":["stream","transform","gulp"],"author":{"name":"David DeSandro"},"license":"MIT","bugs":{"url":"https://github.com/metafizzy/transfob/issues"},"homepage":"https://github.com/metafizzy/transfob#readme","gitHead":"c2e95d8cda023281266b19af9d37b38bad40caca","_id":"transfob@1.0.0","_shasum":"c7fc27a5b5430ad486267ae666d923f74a0ab320","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"c7fc27a5b5430ad486267ae666d923f74a0ab320","size":805,"noattachment":false,"key":"/transfob/-/transfob-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/transfob/download/transfob-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/transfob-1.0.0.tgz_1478092290292_0.6146141800563782"},"directories":{},"publish_time":1478092290814,"_cnpm_publish_time":1478092290814,"_hasShrinkwrap":false}},"readme":"# transfob\n\nGet a transform stream, like `through2.obj()`. Useful for gulp tasks where you want to iterate over files.\n\n``` js\nvar transfob = require('transfob');\n\n// convert files to JS object\nvar data = {};\n\ngulp.task( 'data', function() {\n  return gulp.src('data/*.md')\n    .pipe( transfob( function( file, enc, next ) {\n      var basename = path.basename( file.path, path.extname( file.path ) );\n      data[ file.path ] = file.contents.toString();\n      next( null, file );\n    }) );\n});\n```\n","_attachments":{},"homepage":"https://github.com/metafizzy/transfob#readme","bugs":{"url":"https://github.com/metafizzy/transfob/issues"},"license":"MIT"}