{"_id":"gulp-file","_rev":"2802080","name":"gulp-file","description":"Create vinyl files from a string or buffer and insert into the Gulp pipeline.","dist-tags":{"latest":"0.4.0"},"maintainers":[{"name":"amingoia","email":"talk@alexmingoia.com"},{"name":"ninjabryan","email":"ninjabryan@gmail.com"}],"time":{"modified":"2022-08-14T12:34:58.000Z","created":"2014-05-01T23:27:11.834Z","0.4.0":"2018-01-02T19:03:17.689Z","0.3.0":"2016-05-06T04:45:59.339Z","0.2.0":"2014-11-07T21:15:05.760Z","0.1.0":"2014-05-01T23:27:11.834Z"},"users":{},"author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"repository":{"type":"git","url":"git://github.com/alexmingoia/gulp-file.git"},"versions":{"0.4.0":{"name":"gulp-file","version":"0.4.0","description":"Create vinyl files from a string or buffer and insert into the Gulp pipeline.","main":"./lib/file.js","scripts":{"test":"./node_modules/mocha/bin/mocha test --recursive --reporter spec"},"repository":{"type":"git","url":"git://github.com/alexmingoia/gulp-file.git"},"keywords":["gulp","plugin","string","buffer","file","vinyl"],"author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"license":"BSD","bugs":{"url":"https://github.com/alexmingoia/gulp-file/issues"},"homepage":"https://github.com/alexmingoia/gulp-file","dependencies":{"through2":"^0.4.1","vinyl":"^2.1.0"},"devDependencies":{"expect.js":"^0.3.1","mocha":"^1.18.2","gulp":"^3.6.2"},"gitHead":"e00985d985f4aa54148f1ee02779e2e1623de3ac","_id":"gulp-file@0.4.0","_shasum":"451356a2ac5089c6db91a0444252a0543657006b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.5","_npmUser":{"name":"ninjabryan","email":"ninjabryan@gmail.com"},"dist":{"shasum":"451356a2ac5089c6db91a0444252a0543657006b","size":2297,"noattachment":false,"key":"/gulp-file/-/gulp-file-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-file/download/gulp-file-0.4.0.tgz"},"maintainers":[{"name":"amingoia","email":"talk@alexmingoia.com"},{"name":"ninjabryan","email":"ninjabryan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-file-0.4.0.tgz_1514919797440_0.9411288055125624"},"directories":{},"publish_time":1514919797689,"_hasShrinkwrap":false,"_cnpm_publish_time":1514919797689,"_cnpmcore_publish_time":"2021-12-17T21:04:17.276Z"},"0.3.0":{"name":"gulp-file","version":"0.3.0","description":"Create vinyl files from a string or buffer and insert into the Gulp pipeline.","main":"./lib/file.js","scripts":{"test":"./node_modules/mocha/bin/mocha test --recursive --reporter spec"},"repository":{"type":"git","url":"git://github.com/alexmingoia/gulp-file.git"},"keywords":["gulp","plugin","string","buffer","file","vinyl"],"author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"license":"BSD","bugs":{"url":"https://github.com/alexmingoia/gulp-file/issues"},"homepage":"https://github.com/alexmingoia/gulp-file","dependencies":{"through2":"^0.4.1","gulp-util":"^2.2.14"},"devDependencies":{"expect.js":"^0.3.1","mocha":"^1.18.2","gulp":"^3.6.2"},"gitHead":"f3cc11a12e3e8b9739f32181fdb290eae6a392a6","_id":"gulp-file@0.3.0","_shasum":"e8c4d763f126fb3332fc416e3d1ef46ed67d8d0d","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.1.0","_npmUser":{"name":"amingoia","email":"talk@alexmingoia.com"},"dist":{"shasum":"e8c4d763f126fb3332fc416e3d1ef46ed67d8d0d","size":1626,"noattachment":false,"key":"/gulp-file/-/gulp-file-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-file/download/gulp-file-0.3.0.tgz"},"maintainers":[{"name":"amingoia","email":"talk@alexmingoia.com"},{"name":"ninjabryan","email":"ninjabryan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-file-0.3.0.tgz_1462509958877_0.2740449132397771"},"directories":{},"publish_time":1462509959339,"_hasShrinkwrap":false,"_cnpm_publish_time":1462509959339,"_cnpmcore_publish_time":"2021-12-17T21:04:17.519Z"},"0.2.0":{"name":"gulp-file","version":"0.2.0","description":"Create vinyl files from a string or buffer and insert into the Gulp pipeline.","main":"./lib/file.js","scripts":{"test":"./node_modules/mocha/bin/mocha test --recursive --reporter spec"},"repository":{"type":"git","url":"git://github.com/alexmingoia/gulp-file.git"},"keywords":["gulp","plugin","string","buffer","file","vinyl"],"author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"license":"BSD","bugs":{"url":"https://github.com/alexmingoia/gulp-file/issues"},"homepage":"https://github.com/alexmingoia/gulp-file","dependencies":{"through2":"^0.4.1","gulp-util":"^2.2.14"},"devDependencies":{"expect.js":"^0.3.1","mocha":"^1.18.2","gulp":"^3.6.2"},"gitHead":"7b019767f0779e92f9230f77e256ac5e55f44196","_id":"gulp-file@0.2.0","_shasum":"9e9446a583419821834217cf6eebda59dd612435","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"amingoia","email":"talk@alexmingoia.com"},"maintainers":[{"name":"amingoia","email":"talk@alexmingoia.com"},{"name":"ninjabryan","email":"ninjabryan@gmail.com"}],"dist":{"shasum":"9e9446a583419821834217cf6eebda59dd612435","size":1486,"noattachment":false,"key":"/gulp-file/-/gulp-file-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-file/download/gulp-file-0.2.0.tgz"},"directories":{},"publish_time":1415394905760,"_hasShrinkwrap":false,"_cnpm_publish_time":1415394905760,"_cnpmcore_publish_time":"2021-12-17T21:04:17.730Z"},"0.1.0":{"name":"gulp-file","version":"0.1.0","description":"Create vinyl files from a string or buffer and insert into the Gulp pipeline.","main":"./lib/file.js","scripts":{"test":"./node_modules/mocha/bin/mocha test --recursive --reporter spec"},"repository":{"type":"git","url":"git://github.com/alexmingoia/gulp-file.git"},"keywords":["gulp","plugin","string","buffer","file","vinyl"],"author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"license":"BSD","bugs":{"url":"https://github.com/alexmingoia/gulp-file/issues"},"homepage":"https://github.com/alexmingoia/gulp-file","dependencies":{"through2":"^0.4.1","gulp-util":"^2.2.14"},"devDependencies":{"expect.js":"^0.3.1","mocha":"^1.18.2","gulp":"^3.6.2"},"_id":"gulp-file@0.1.0","dist":{"shasum":"4a47570951f18056ee61b4c86f70a0a40e1a2f6c","size":1370,"noattachment":false,"key":"/gulp-file/-/gulp-file-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-file/download/gulp-file-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"amingoia","email":"talk@alexmingoia.com"},"maintainers":[{"name":"amingoia","email":"talk@alexmingoia.com"},{"name":"ninjabryan","email":"ninjabryan@gmail.com"}],"directories":{},"publish_time":1398986831834,"_hasShrinkwrap":false,"_cnpm_publish_time":1398986831834,"_cnpmcore_publish_time":"2021-12-17T21:04:18.014Z"}},"readme":"# gulp-file\n\n[![Build Status](https://secure.travis-ci.org/alexmingoia/gulp-file.png)](http://travis-ci.org/alexmingoia/gulp-file) \n[![NPM version](https://badge.fury.io/js/gulp-file.png)](http://badge.fury.io/js/gulp-file)\n\nCreate vinyl files from a string or buffer and insert into the Gulp pipeline.\n\n## Installation\n\n```sh\nnpm install gulp-file\n```\n\n## API\n\n### plugin(name, source, options)\n\nCreates a vinyl file with the given `name` from `source` string or buffer and\nreturns a transform stream for use in your gulp pipeline.\n\n### plugin(sourceArray, options)\n\nCreates vinyl files for each entry in the array.  Each entry is an object with a `name` and `source` property.  A vinyl file is created with the given `name` and `source` and inserted into the returned transform stream.\n\n## Example\n\n[Primus](https://github.com/primus/primus) outputs the client library as a string. Using `gulp-file` we can\ncreate a vinyl file from the string and insert it into the gulp pipeline:\n\n```javascript\nvar gulp = require('gulp')\n  , file = require('gulp-file');\n\ngulp.task('js', function() {\n  var str = primus.library();\n\n  return gulp.src('scripts/**.js')\n    .pipe(file('primus.js', str))\n    .pipe(gulp.dest('dist'));\n});\n```\n\nUse it at the beginning of your pipeline by setting `src: true`:\n\n```javascript\nvar gulp = require('gulp')\n  , file = require('gulp-file');\n\ngulp.task('js', function() {\n  var str = primus.library();\n\n  return file('primus.js', str, { src: true })\n    .pipe(gulp.dest('dist'));\n});\n```\n\n## Options\n\n### src\n\nCalls `stream.end()` to be used at the beginning of your pipeline in place of\n`gulp.src()`. Default: `false`.\n\n## BSD Licensed\n","_attachments":{},"homepage":"https://github.com/alexmingoia/gulp-file","bugs":{"url":"https://github.com/alexmingoia/gulp-file/issues"},"license":"BSD"}