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:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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.
// 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'));
vinyl-source-buffer is mostly based on vinyl-source-stream.