Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sorribas/choppa

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

choppa

build status

Through stream that chops a stream into specified size chunks. The main purpose of the module is to test if your stream behaves the same way when it receives different sized chunks.

Install

npm install choppa

get to da choppa

Usage

var choppa = require('choppa');

readableStream.pipe(choppa()).pipe(writableStream);  // writable stream will receive 1 byte at a time.
readableStream.pipe(choppa(5)).pipe(writableStream); // writable stream will receive 5 byte at a time.


//You can also pass a 0 to the choppa constructor and the size of each chunk will be random
readableStream.pipe(choppa(0)).pipe(writableStream);

About

Node.js module to chop a stream into specified size chunks.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.