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

时间:2024-07-16 16:57:33
【文件属性】:

文件名称:akostream:各种各样的流(all kinds of stream)

文件大小:5KB

文件格式:ZIP

更新时间:2024-07-16 16:57:33

JavaScript

#akostream 各种各样的流(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 toCo


【文件预览】:
akostream-master
----.travis.yml(36B)
----index.js(2KB)
----package.json(702B)
----test()
--------delay.js(2KB)
--------trickle.js(3KB)
--------combine.js(4KB)
----Makefile(359B)
----README.md(754B)

网友评论