akostream

0.0.5 • Public • Published

akostream

travis

各种各样的流(all kinds of stream)

INSTALL

npm install akostream
var akostream = require('akostream');

trickle

var size = 100;
var trickle = akostream.trickle(size);

writeableStream.pipe(trickle).pipe(readableStream);

size限制流输出的大小,保证输出数据大小在size之下.

delay

var delay = 100;
var trickle = akostream.delay(delay);

writeableStream.pipe(trickle).pipe(readableStream);

延迟输出,delay控制延迟时间

combine

var toCombine = [readSteam1, readStream2, readStream3, readStream4];
var combine = akostream.combine(toCombine);

combine.pipe(readableStream);

按顺序顺序合并流

/akostream/

    Package Sidebar

    Install

    npm i akostream

    Weekly Downloads

    27

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • wyicwx