{"_id":"vinyl-source-stream","_rev":"363965","name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"time":{"modified":"2021-07-15T09:50:13.000Z","created":"2014-01-11T12:10:43.370Z","2.0.0":"2017-12-23T05:33:27.446Z","1.1.2":"2017-12-23T05:28:28.797Z","1.1.1":"2017-12-22T22:36:12.216Z","1.1.0":"2015-03-06T06:41:43.495Z","1.0.0":"2014-09-07T23:49:02.830Z","0.1.1":"2014-02-15T11:12:58.251Z","0.1.0":"2014-02-15T10:54:12.048Z","0.0.0":"2014-01-11T12:10:43.370Z"},"users":{"conradz":true,"romelyus":true,"jonkemp":true,"rrbiten":true,"kmck":true,"jpsirois":true,"fairchild":true,"minimit":true,"citguy":true,"cameronjroe":true,"garek":true,"tophsic":true,"kubakubula":true,"simplyianm":true,"stanleyhlng":true,"sirlisko":true,"9joneg":true,"alexkval":true,"n370":true,"kai_":true,"dongxu":true,"kelerliao":true,"chrisjordanme":true,"jabbrwcky":true,"awen1983":true,"rchiniquy":true,"mohankethees":true,"mystaticself":true,"h.kamitomo":true,"x4devs":true,"benjaminrowlinson":true,"preflight":true,"montyanderson":true,"nice_body":true,"narven":true,"jun01ito":true,"usnow":true,"iolo":true,"davepoon":true,"lluvio":true,"evan2x":true,"harryxu":true,"jclo":true,"leonardorb":true,"ameer157":true,"wayneseymour":true,"antixrist":true,"faelcorreia":true,"davidnyhuis":true,"a3.ivanenko":true,"artivilla":true,"feliperibeiror":true,"brandonccx":true,"joshukraine":true,"vutran":true,"ristostevcev":true,"jytu":true,"richardcfelix":true,"muzhen":true,"erikvold":true,"panos277":true,"fdeneux":true,"caijf":true,"b4z81":true,"kaapex":true,"muroc":true,"iori20091101":true,"wkaifang":true,"maxwang":true,"ronnyf89":true,"tdmalone":true,"jelanithompson":true,"monjer":true,"martinjh":true,"jprempeh":true,"jasonleewilson":true,"raschdiaz":true,"suemcnab":true,"dylanh724":true,"ab.moon":true,"yikuo":true,"hektve87":true,"itonyyo":true,"chinawolf_wyp":true,"tracymuzi":true,"jlopvi":true,"mobeicaoyuan":true,"bphanikumar":true,"nalindak":true,"gpuente":true,"cruzrovira":true,"npmrud5g":true,"vaporic":true,"froguard":true,"wvlvik":true,"belcour":true,"imaginegenesis":true,"sm1215":true,"kokoruz":true},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream.git"},"versions":{"2.0.0":{"name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","version":"2.0.0","main":"index.js","browser":"index.js","dependencies":{"vinyl":"^2.1.0","through2":"^2.0.3"},"devDependencies":{"gulp-rename":"~0.2.1","tape":"~2.3.2","vinyl-fs":"^3.0.0"},"scripts":{"test":"node test"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream.git"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"gitHead":"502f2e5e798a7daab9ae11eeb6bd16a7e6105903","_id":"vinyl-source-stream@2.0.0","_shasum":"f38a5afb9dd1e93b65d550469ac6182ac4f54b8e","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"f38a5afb9dd1e93b65d550469ac6182ac4f54b8e","size":3375,"noattachment":false,"key":"/vinyl-source-stream/-/vinyl-source-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-source-stream/download/vinyl-source-stream-2.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-source-stream-2.0.0.tgz_1514007207368_0.262908587930724"},"directories":{},"publish_time":1514007207446,"_hasShrinkwrap":false,"_cnpm_publish_time":1514007207446},"1.1.2":{"name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","version":"1.1.2","main":"index.js","browser":"index.js","dependencies":{"vinyl":"^0.4.3","through2":"^2.0.3"},"devDependencies":{"tape":"~2.3.2","vinyl-map":"0.0.1","gulp-rename":"~0.2.1","gulp":"~3.3.0"},"scripts":{"test":"node test"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream.git"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"gitHead":"cba63e200e4cf50cd8438830ea24ec87ce6c55cc","_id":"vinyl-source-stream@1.1.2","_shasum":"62b53a135610a896e98ca96bee3a87f008a8e780","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"62b53a135610a896e98ca96bee3a87f008a8e780","size":3299,"noattachment":false,"key":"/vinyl-source-stream/-/vinyl-source-stream-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-source-stream/download/vinyl-source-stream-1.1.2.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-source-stream-1.1.2.tgz_1514006908604_0.05026755062863231"},"directories":{},"publish_time":1514006908797,"_hasShrinkwrap":false,"_cnpm_publish_time":1514006908797},"1.1.1":{"name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","version":"1.1.1","main":"index.js","browser":"index.js","dependencies":{"vinyl":"^2.1.0","through2":"^2.0.3"},"devDependencies":{"gulp-rename":"~0.2.1","tape":"~2.3.2","vinyl-fs":"^3.0.0"},"scripts":{"test":"node test"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream.git"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"gitHead":"e7faae529190672a4febd8ec919ab57a4aee1fe3","_id":"vinyl-source-stream@1.1.1","_shasum":"2aed6cba5f492196364d9d8bd84a0bcd18c4f382","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"2aed6cba5f492196364d9d8bd84a0bcd18c4f382","size":3370,"noattachment":false,"key":"/vinyl-source-stream/-/vinyl-source-stream-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-source-stream/download/vinyl-source-stream-1.1.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-source-stream-1.1.1.tgz_1513982171213_0.7682868905831128"},"directories":{},"publish_time":1513982172216,"_hasShrinkwrap":false,"_cnpm_publish_time":1513982172216},"1.1.0":{"name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","version":"1.1.0","main":"index.js","browser":"index.js","dependencies":{"vinyl":"^0.4.3","through2":"^0.6.1"},"devDependencies":{"tape":"~2.3.2","vinyl-map":"0.0.1","gulp-rename":"~0.2.1","gulp":"~3.3.0"},"scripts":{"test":"node test"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"gitHead":"916fbd27d622aba1a76854226b87908af3878e05","_id":"vinyl-source-stream@1.1.0","_shasum":"44cbe5108205279deb0c5653c094a2887938b1ab","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"44cbe5108205279deb0c5653c094a2887938b1ab","size":3303,"noattachment":false,"key":"/vinyl-source-stream/-/vinyl-source-stream-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-source-stream/download/vinyl-source-stream-1.1.0.tgz"},"directories":{},"publish_time":1425624103495,"_cnpm_publish_time":1425624103495,"_hasShrinkwrap":false},"1.0.0":{"name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","version":"1.0.0","main":"index.js","browser":"index.js","dependencies":{"vinyl":"^0.4.3","through2":"^0.6.1"},"devDependencies":{"tape":"~2.3.2","vinyl-map":"0.0.1","gulp-rename":"~0.2.1","gulp":"~3.3.0"},"scripts":{"test":"node test"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"gitHead":"25ac459c810c84fd0b2c39b53eddcaf74f706ef9","_id":"vinyl-source-stream@1.0.0","_shasum":"78e2030826f5b55cf96b102741f0abf1c411b9bb","_from":".","_npmVersion":"1.4.24","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"78e2030826f5b55cf96b102741f0abf1c411b9bb","size":3160,"noattachment":false,"key":"/vinyl-source-stream/-/vinyl-source-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-source-stream/download/vinyl-source-stream-1.0.0.tgz"},"directories":{},"publish_time":1410133742830,"_cnpm_publish_time":1410133742830,"_hasShrinkwrap":false},"0.1.1":{"name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","version":"0.1.1","main":"index.js","browser":"index.js","dependencies":{"vinyl":"~0.2.2","through2":"~0.3.0"},"devDependencies":{"tape":"~2.3.2","vinyl-map":"0.0.1","gulp-rename":"~0.2.1","gulp":"~3.3.0"},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"_id":"vinyl-source-stream@0.1.1","dist":{"shasum":"a53a4f21a07a234695e04c2703f9f1b5b9084595","size":3164,"noattachment":false,"key":"/vinyl-source-stream/-/vinyl-source-stream-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-source-stream/download/vinyl-source-stream-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"directories":{},"publish_time":1392462778251,"_cnpm_publish_time":1392462778251,"_hasShrinkwrap":false},"0.1.0":{"name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","version":"0.1.0","main":"index.js","browser":"index.js","dependencies":{"vinyl":"~0.2.2","through2":"~0.3.0"},"devDependencies":{"tape":"~2.3.2","vinyl-map":"0.0.1","gulp-rename":"~0.2.1","gulp":"~3.3.0"},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"_id":"vinyl-source-stream@0.1.0","dist":{"shasum":"f347ff8be85614fc122e1ffa257db2d9efcd8a37","size":3139,"noattachment":false,"key":"/vinyl-source-stream/-/vinyl-source-stream-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-source-stream/download/vinyl-source-stream-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"directories":{},"publish_time":1392461652048,"_cnpm_publish_time":1392461652048,"_hasShrinkwrap":false},"0.0.0":{"name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","version":"0.0.0","main":"index.js","browser":"index.js","dependencies":{"vinyl":"~0.2.2","through2":"~0.3.0"},"devDependencies":{"tape":"~2.3.2","vinyl-map":"0.0.1","gulp-rename":"~0.2.1","gulp":"~3.3.0"},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"readmeFilename":"README.md","_id":"vinyl-source-stream@0.0.0","dist":{"shasum":"c2e1b1e674a64bfe9260127dcbe575fd3d9be707","size":3153,"noattachment":false,"key":"/vinyl-source-stream/-/vinyl-source-stream-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-source-stream/download/vinyl-source-stream-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"directories":{},"publish_time":1389442243370,"_cnpm_publish_time":1389442243370,"_hasShrinkwrap":false}},"readme":"# vinyl-source-stream [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/vinyl-source-stream&title=vinyl-source-stream&description=hughsk/vinyl-source-stream%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #\n\nUse conventional text streams at the start of your\n[gulp](http://github.com/gulpjs/gulp) or\n[vinyl](http://github.com/wearefractal/vinyl) pipelines, making for nicer\ninteroperability with the existing npm stream ecosystem.\n\nTake, for example, [browserify](http://browserify.org/). There are the\n[gulp-browserify](https://github.com/deepak1556/gulp-browserify) and\n[gulpify](https://github.com/hughsk/gulpify) plugins, which you can use in\ncombination with gulp to get browserify working in your build. Unfortunately,\nthese plugins come with additional overhead: an extra GitHub repository, npm\nmodule, maintainer, tests, semantics, etc. It's much simpler\nin this case to use the original module directly where you can, which is what\n`vinyl-source-stream` handles for you.\n\n## Usage ##\n\n[![vinyl-source-stream](https://nodei.co/npm/vinyl-source-stream.png?mini=true)](https://nodei.co/npm/vinyl-source-stream)\n\nOur previous example, browserify, has a streaming API for its output bundles\nwhich you can use directly. This module is just a bridge that makes it\nsimple to use conventional text streams such as this in combination with gulp.\nHere's an example of using `vinyl-source-stream` and `browserify`, compared to\nusing `gulpify`:\n\n``` javascript\nvar source = require('vinyl-source-stream')\nvar streamify = require('gulp-streamify')\nvar browserify = require('browserify')\nvar uglify = require('gulp-uglify')\nvar gulpify = require('gulpify')\nvar rename = require('gulp-rename')\nvar gulp = require('gulp')\n\n// using gulpify:\ngulp.task('gulpify', function() {\n  gulp.src('index.js')\n    .pipe(gulpify())\n    .pipe(uglify())\n    .pipe(rename('bundle.js'))\n    .pipe(gulp.dest('./'))\n})\n\n// using vinyl-source-stream:\ngulp.task('browserify', function() {\n  var bundleStream = browserify('./index.js').bundle()\n\n  bundleStream\n    .pipe(source('index.js'))\n    .pipe(streamify(uglify()))\n    .pipe(rename('bundle.js'))\n    .pipe(gulp.dest('./'))\n})\n```\n\nNot all that different, really! The nice thing here is that you're getting the\nup-to-date browserify API and don't have to worry about the plugin's available\nfunctionality. Of course, these same benefits apply for any readable text\nstream you can find on npm.\n\n## API ##\n\n### `stream = sourceStream([filename])` ###\n\nCreates a through stream which takes text as input, and emits a single\nvinyl file instance for streams down the pipeline to consume.\n\n`filename` is a \"pretend\" filename to use for your file, which some streams\nmight use to determine various factors such as the final filename of your file.\nIt should be a string, and though recommended, using this argument is optional.\n\n## License ##\n\nMIT. See [LICENSE.md](http://github.com/hughsk/vinyl-source-stream/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/hughsk/vinyl-source-stream","bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"license":"MIT"}