Socket
Socket
Sign inDemoInstall

akostream

Package Overview
Dependencies
6
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    akostream

all kinds of stream


Version published
Maintainers
1
Install size
202 kB
Created

Readme

Source

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

按顺序顺序合并流

Keywords

FAQs

Last updated on 04 Feb 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc