npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

inflate

0.0.7

@chrisdickinson

npmRepoSnykSocket
Downloads:2272
$ npm install inflate
DailyWeeklyMonthlyYearly

inflate

streaming inflate in pure javascript (as a through stream).

var inflate = require('inflate')

your_input
  .pipe(inflate())
  .on('unused', function(unused_buffer, num_bytes_read) {

  })
  .pipe(your_output)

API

inflate(should_output=true, should_adler=true) -> inflate stream

create an inflate stream. each inflate stream carries a 32k memory overhead (for the window).

inflate.recycle() -> inflate stream

create a new inflate stream that recycles the output window (and JIT warmup) from the previous inflate stream.

License

MIT