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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    0

Package Sidebar

Install

npm i lump-stream

Weekly Downloads

2

Version

0.0.2

License

ISC

Last publish

Collaborators

  • wpears