inflate

pure javascript inflate implemented as a through stream

7 个版本
安装
npm install inflate
yarn add inflate
pnpm add inflate
bun add inflate
README

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

版本列表
0.0.7 2013-07-01
0.0.6 2013-05-27
0.0.5 2013-05-10
0.0.4 2013-05-06
0.0.3 2013-05-04
0.0.2 2013-04-22
0.0.1 2013-04-22