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 gulp-buffer with all npm packages installed. Try it out:

var gulpBuffer = require("gulp-buffer")

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

gulp-buffer v0.0.2

Make sure all gulp file contents are available as buffer


Some gulp plugins do not support streaming file contents. gulp-buffer and gulp-stream come to the rescue.

There are 3 main reasons why a gulp plugin may not support stream :

* The stream support is on the roadmap but has not been added to the plugin
* The underlying library used for the transformation does yet support a streaming API
* The content transformation is not very well suited for streaming (think of content.reverse() for example where you need the end of the file first)

In all these cases, simply add gulp-buffer in front of such a plugin, and it will make sure that the plugin is presented only with buffers.

When you want to go back to full streaming capabilities, add gulp-stream and it will make sure that all your files are streamed again.

build status


$ npm install gulp-buffer



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