vinyl-source-buffer

Convert a text stream into a vinyl pipeline whose content is a buffer

Usage no npm install needed!

<script type="module">
  import vinylSourceBuffer from 'https://cdn.skypack.dev/vinyl-source-buffer';
</script>

README

vinyl-source-buffer

Build Status

Convert a text stream into a vinyl pipeline whose content is a buffer. The typical use case being that using a browserify stream in a gulp pipeline.

Usage

// in a gulp task
var source = require('vinyl-source-buffer');
var browserify = require('browserify');
var b = browserify('main.js');
b.bundle()
  .pipe(source('main.js'))
  .pipe(gulp.dest('public'));

Acknowledgments

vinyl-source-buffer is mostly based on vinyl-source-stream.