max-mapper / max-mapper/binary-csv
data event emits line *and* index of that line
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 106
- 派生
- 15
- PR 合并指标
- 30 天内没有已合并 PR
描述
At the moment AFAICT (!) I can't get the index of the current line. I'd love something like:
.on('data', function(line, index) {... }
This is useful in a whole bunch of situations. Would it be possible to add - e.g. i'm implementing a head operator for a csv in https://github.com/okfn/datapipes
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 parser 的 .on('data', function(line, index) {...}) 事件接口以及 data 事件的发出方式。检查 datapipes head-operator 用例,然后验证每个发出的行都包含其索引,并且现有的 streaming 行为保持不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100