npm.io
0.0.2 • Published 11 years ago

lump-stream

Licence
ISC
Version
0.0.2
Deps
2
Vulns
0
Weekly
0

Like block-stream, but when you don't really care about exact bytelength.

Provides a Transform stream based on readable-stream.

Instantiate like so:

var lump = lumpStream(1024) //The lumpstream will collect input and emit ~1kb chunks

Doesn't pad or slice to your provided bytelength. Let a lump be a lump.

If given an object stream, it will treat the numerical argument as a length value and collect the objects in array until that value is reached or the stream ends.

Keywords