A toolbox for handling Node.js stream 🧰.
- 🔍 @stream-toolbox/search: Search for the given Buffer in a sequence of data (readable stream).
- 💱 @stream-toolbox/replace: Replace the given Buffer in a readable stream with another Buffer.
- ✂️ @stream-toolbox/split: Split a readable stream into multiple readable streams by size or Buffer.
- 🔗 @stream-toolbox/join: Join multiple readable streams (or Buffers) into one readable stream.
- 🚰 @stream-toolbox/zero: Create a readable stream that will continuously generate data, somewhat similar to /dev/zero, but with some extra features.
- 🕳️ @stream-toolbox/null: Create a writable stream that will swallow all data, somewhat similar to /dev/null, but with some extra features.
- ⏳ @stream-toolbox/limit: Create a duplex that limits streaming transfer rate.
- 📈 @stream-toolbox/monit: Create a duplex that monits streaming transfer rate.
- 📋 @stream-toolbox/multipart: A streaming parser for multipart/form-data type request body.
↔️ @stream-toolbox/tunnel Forward data bidirectionally between two duplexes, likea.pipe(b).pipe(a)
, but with better handling for various cases.
一个用于处理 Node.js stream 的工具箱 🧰。
- 🔍 @stream-toolbox/search: 在一连串的数据(可读流)中搜索特定的 Buffer。
- 💱 @stream-toolbox/replace: 用提供的 Buffer 替换可读流中的特定 Buffer。
- ✂️ @stream-toolbox/split: 将一个可读流按大小或特定 Buffer 分割成多个可读流。
- 🔗 @stream-toolbox/join: 将多个可读流(或 Buffer)连接成一个可读流。
- 🚰 @stream-toolbox/zero: 创建一个会源源不断产生数据的可读流,有点类似于 /dev/zero,但多了一些额外的功能.
- 🕳️ @stream-toolbox/null: 创建一个会吞噬所有数据的可写流,有点类似于 /dev/null,但多了一些额外的功能。
- ⏳ @stream-toolbox/limit: 创建一个双工流用于控制流的传输速度。
- 📈 @stream-toolbox/monit: 创建一个双工流用于监测流的传输速度。
- 📋 @stream-toolbox/multipart: 一款用于 multipart/form-data 类型请求体的解析工具。
↔️ @stream-toolbox/tunnel: 在两个 duplex 间双向转发数据,类似a.pipe(b).pipe(a)
,但是对各种情况有更完善的处理。