Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…


Cannot retrieve contributors at this time

file 27 lines (18 sloc) 0.594 kb


a module for buffering streams into strings, buffers, json or queries.
it's available through npm

npm install buffoon

usage is simple

var buffoon = require('buffoon');

// convert a stream to a string
buffoon.string(stream, console.log);

// convert a stream to a specific string encoding (defaults to utf-8)
buffoon.string(stream, 'ascii', console.log);

// buffer a stream into a single buffer
buffoon.buffer(stream, console.log);

// parse a stream as json
buffoon.json(stream, console.log);

// parse a stream as a querystring
buffoon.query(stream, console.log);
Something went wrong with that request. Please try again.