🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

buffoon

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buffoon

buffer streams into strings, buffers, json or queries

latest
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

buffoon

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);

Keywords

buffering

FAQs

Package last updated on 08 Nov 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts