文件名称:streamlined:处理映射转换对象流的辅助流集合
文件大小:71KB
文件格式:ZIP
更新时间:2024-08-03 03:21:40
JavaScript
流线型 处理映射/转换对象流的辅助流集合 安装 这个模块是通过 npm 安装的: $ npm install streamlined 示例用法 限制流发出的事件数 使用#limit()或#head()来限制发送到前 5 个的数据事件的数量: var sl = require ( 'streamlined' ) ; var count = 0 ; myObjectModeStream ( ) . pipe ( sl . limit ( 5 ) ) . on ( 'data' , function ( data ) { // should only print the first 5 data events console . log ( data ) ; } ) ; 将对象流转换为 { key: key, data: data } 流 对写入很有用。 提供
【文件预览】:
streamlined-master
----.gitignore(64B)
----collect.js(529B)
----aggregate.js(1KB)
----funnel.js(860B)
----package.json(968B)
----select.js(865B)
----map.js(306B)
----.travis.yml(38B)
----where.js(810B)
----count.js(287B)
----distinct.js(637B)
----LICENSE(1KB)
----index.js(545B)
----tail.js(458B)
----README.md(14KB)
----limitBytes.js(541B)
----missing.js(372B)
----limit.js(441B)
----key.js(633B)
----stringify.js(284B)
----.npmignore(6B)
----test()
--------index.js(19KB)
--------fixtures()
----pluck.js(365B)
----data.js(403B)