0.0.6 • Published 11 years ago

inflate-until v0.0.6

Weekly downloads
6
License
-
Repository
github
Last release
11 years ago

inflate-until

a module for that really odd case where you know how big the thing you're deflating is, but you want to deflate it and know how big the compressed data was.

NB: this is slow.

var stream = inflateUntil(256, function(err, info) {
  stream.rest // the remaining contents of the 
              // last buffer

  info.compressed // the compressed size
  info.data // the inflated data
})

inflateUntil.write(buf)
inflateUntil.write(buf)
inflateUntil.write(buf)
inflateUntil.write(buf)

API

inflateUntil(size, ready(err, info)) -> stream

create an inflateUntil stream.

stream.rest

the remaining bytes of the last buffer written.

License

MIT

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago