{"_id":"vinyl-source-stream","_rev":"122-91b4d19e61e4cb6396bb2923cc715b16","name":"vinyl-source-stream","description":"Use conventional text streams at the start of your gulp or vinyl pipelines","dist-tags":{"latest":"2.0.0"},"versions":{"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"],"_id":"vinyl-source-stream@0.0.0","dist":{"shasum":"c2e1b1e674a64bfe9260127dcbe575fd3d9be707","tarball":"https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-0.0.0.tgz","integrity":"sha512-MxVNdFm2dDaZm4ndfz/RUNc9uZ53pZaAauB1j7CD2MprLuH8zwfcNW12Bbu+RoUaEusYC1zQbCKxAwZiZCvGfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCODCgyoPiRZwF3NirhP1qxar4t8Nxf5lXKXCQpvZX1RwIge3fQVb2TsGqe0nYuyfsN72I4GiDlPzwhseFt5HU2Lt8="}]},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-0.1.0.tgz","integrity":"sha512-5GypzLOx3s9Q8fWHmZ8dIqjj8aqbPDrHmgVDsYyKda9L9qWECSYvJ9bLdiUrmtj+preeEdGHUVcSgBDRcsu+NA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXz+5oSUbjbOneXoWuQywNOPHRAhWuSgDZCE80Ieod3wIhAM1/S2iA/xrR0cBuD5XzlvabbMV79kWSvzY4nZ/VeQak"}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-0.1.1.tgz","integrity":"sha512-FPHVFk1tcZRuVDKJtzvQe0uaS37oQarR/FYHqFTHq9YXMCUOIkTFa7i0XFge5xml6VzeO8fc/W8no3BOBiY7wQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGWon0KQMvsxHk2D9v7XNzrBkhT4lKsbm5uF50TVr7UzAiEA9rxpNdu3jwds8ELYH6QEJReTSiPjqOVqfc01gwH0Gxs="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{}},"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"}],"dist":{"shasum":"78e2030826f5b55cf96b102741f0abf1c411b9bb","tarball":"https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.0.0.tgz","integrity":"sha512-3APClYAMcut3Bhiidge0c72Yh2dHfPns6qu1eVmjn9vuKylf89f9AZqneXDVtEJomQuGzGoUjjmCGIwh/1zmyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9K7QtQ6ssURZ+4ykQR3ltbhq9KG2EdJ7/tYYvqL9utgIgOV1IJjbIZ57TI8uKdriI0yMAosZzRwBC1qbsuwEVru0="}]},"directories":{}},"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"}],"dist":{"shasum":"44cbe5108205279deb0c5653c094a2887938b1ab","tarball":"https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.1.0.tgz","integrity":"sha512-yCHJys3nKJ+8FryvKa0i3bTUAKmqbN3zyimYbDxY/fJsvIcPKn6dsxmqvMOZ3FHfHMYR4aFWh2Z6ABWyy6TRLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSr8Au7rAmVsc3HgyLvTe6ToK5ilJg9D2cw11FsNyp0AiBOKaKjnHhvzHYXSa8WAAEnq4M9H1yW4dCJK5NTUpKcKQ=="}]},"directories":{}},"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":[{"email":"blaine.bublitz@gmail.com","name":"phated"},{"email":"hughskennedy@gmail.com","name":"hughsk"}],"dist":{"shasum":"2aed6cba5f492196364d9d8bd84a0bcd18c4f382","tarball":"https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.1.1.tgz","integrity":"sha512-HA8cPl789Nwjp+PXm5NK2HLnJNUcIfLys/b6Oq3wM/VQBjblOEqWIsStLPUnSqHVopy/19oYNuPWeNO8YbOfTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIExMhoPozk1hiA8PfgQfuDsrEHpSxogOA/f9tQseKK8DAiEAhiQfHDPhamElUWEr8LPhhAV89710N9pml6ru+pr8ubM="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-source-stream-1.1.1.tgz_1513982171213_0.7682868905831128"},"directories":{}},"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":[{"email":"blaine.bublitz@gmail.com","name":"phated"},{"email":"hughskennedy@gmail.com","name":"hughsk"}],"dist":{"shasum":"62b53a135610a896e98ca96bee3a87f008a8e780","tarball":"https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.1.2.tgz","integrity":"sha512-X+1Jq+M6ufv/ky480hndPBsNb0ieqTQkvpakxMTxb7oUlyuNaJKL2HddYUrbTec0Lb0J53JlDiCetcgJ3b3Wmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxmwAvwtfvtMZtWBhfpenIkBli7Rvb1cKVYWOvAdchYgIhAOy3a53C8WDgiLwS4Iy4NHz0nvdM8+y0GYo7axuF4Yu5"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-source-stream-1.1.2.tgz_1514006908604_0.05026755062863231"},"directories":{}},"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":[{"email":"blaine.bublitz@gmail.com","name":"phated"},{"email":"hughskennedy@gmail.com","name":"hughsk"}],"dist":{"shasum":"f38a5afb9dd1e93b65d550469ac6182ac4f54b8e","tarball":"https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-2.0.0.tgz","integrity":"sha512-Y5f1wRGajOfYukhv8biIGA7iZiY8UOIc3zJ6zcUNIbRG1BVuXzBsfSfe7MUJTttVkuy64k/pGQtJdd/aIt+hbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjyYP+bMG+oF6/b2xTz5SpFNKHeaKQUEnxKGyenITuUAIgUFoLeByT12GAXjRmgVo17v85g+AHP74LXzQVRrOxUSU="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vinyl-source-stream-2.0.0.tgz_1514007207368_0.262908587930724"},"directories":{}}},"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","maintainers":[{"email":"blaine.bublitz@gmail.com","name":"phated"},{"email":"hughskennedy@gmail.com","name":"hughsk"}],"time":{"modified":"2023-11-07T05:03:11.602Z","created":"2014-01-11T12:10:43.370Z","0.0.0":"2014-01-11T12:10:43.370Z","0.1.0":"2014-02-15T10:54:12.048Z","0.1.1":"2014-02-15T11:12:58.251Z","1.0.0":"2014-09-07T23:49:02.830Z","1.1.0":"2015-03-06T06:41:43.495Z","1.1.1":"2017-12-22T22:36:12.216Z","1.1.2":"2017-12-23T05:28:28.797Z","2.0.0":"2017-12-23T05:33:27.446Z"},"readmeFilename":"README.md","users":{"conradz":true,"jonkemp":true,"rrbiten":true,"romelyus":true,"jpsirois":true,"kmck":true,"fairchild":true,"minimit":true,"garek":true,"kubakubula":true,"tophsic":true,"cameronjroe":true,"simplyianm":true,"sirlisko":true,"alexkval":true,"stanleyhlng":true,"n370":true,"kelerliao":true,"chrisjordanme":true,"kai_":true,"jabbrwcky":true,"awen1983":true,"rchiniquy":true,"mystaticself":true,"mohankethees":true,"benjaminrowlinson":true,"h.kamitomo":true,"x4devs":true,"preflight":true,"montyanderson":true,"narven":true,"nice_body":true,"jun01ito":true,"usnow":true,"davepoon":true,"lluvio":true,"iolo":true,"evan2x":true,"harryxu":true,"wayneseymour":true,"jclo":true,"leonardorb":true,"ameer157":true,"antixrist":true,"faelcorreia":true,"artivilla":true,"a3.ivanenko":true,"davidnyhuis":true,"brandonccx":true,"joshukraine":true,"feliperibeiror":true,"vutran":true,"jytu":true,"ristostevcev":true,"muzhen":true,"richardcfelix":true,"erikvold":true,"panos277":true,"fdeneux":true,"b4z81":true,"caijf":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},"homepage":"https://github.com/hughsk/vinyl-source-stream","keywords":["vinyl","gulp","gulpfriendly","vanilla","stream","string","text","classic"],"repository":{"type":"git","url":"git://github.com/hughsk/vinyl-source-stream.git"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"bugs":{"url":"https://github.com/hughsk/vinyl-source-stream/issues"},"license":"MIT"}