transform-clump
A transform stream that clumps data into an array of a specified size. The oldest items in the array are replaced by the newer items as they stream in.
Installation
$ npm install transform-clump --save
Example
var stream = ;var clump = ;var source = stream;var dest = stream;var result; source; dest;dest; for var i = 0 j = 5; i < j; i++ source;source;
API
var clump = transformClump(size)
Initialise a new TransformClump
with the given size
.
Testing
$ make test
To generate a coverage report:
$ make test-cov
Credits
- urlgrey for the Makefile inspiration.