pull-group
pull-stream to group incoming data into arrays of max length `length`, (the last item may be shorter than `length`)
Last updated 4 years ago by dominictarr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pull-group 
SYNC missed versions from official npm registry.

pull-group

pull-stream to group incoming data into arrays of max length length, (the last item may be shorter than length)

Useful for data you can handle in batches.

var Group = require('pull-group')
pull(
  pull.count(100), //0, 1, 2, 3, 4, 5, ...
  Group(5),
  pull.log() // [0, 1,2,3,4], [5, 6,7,8,9], ...
)

License

MIT

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 2
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2017 © taobao.org |