lump-stream

0.0.2 • Public • Published

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.

Package Sidebar

Install

npm i lump-stream

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • wpears