Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Nodejs Buffer helper.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
README.md
index.js
package.json

README.md

bupper

A Nodejs Buffer helper.

Installation

Use npm:

npm install bupper

Or add to your package dependencies:

{
  "dependencies": {
    "bupper": "*"
  }
}

Quick Start

Concat buffer chunks with .add(chunk) and output them together using .combine()

var Bupper = require('bupper');
var http = require('http');
http.createServer(function(req, res) {
  req.on('data', function(chunk) {
    Bupper.add(chunk);
  });
  req.on('end', function() {
    console.log( Bupper.combine().toString() )
  })
}).listen(80);

APIs

Concat chunks:

Bupper.add(chunk)

Output chunks:

Bupper.combine()

Todo

  • write a test
Something went wrong with that request. Please try again.