Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including vinyl-source-buffer with all npm packages installed. Try it out:

var vinylSourceBuffer = require("vinyl-source-buffer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

vinyl-source-buffer v1.1.1

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

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.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free