1.0.5 • Published 1 year ago

@indutny/inflate v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@indutny/inflate

npm

Very naive and unoptimized implementation of Inflate part of the DEFLATE spec.

Installation

npm install @indutny/inflate

Usage

import Inflate from '@indutny/inflate';

const blocks = [];

const inflate = new Inflate({
  onBlock(block) {
    blocks.push(Buffer.from(block));
  },
});

for (const byte of buffer) {
  inflate.push(byte);
}
inflate.finish();

console.log(Buffer.concat(blocks));

LICENSE

This software is licensed under the MIT License.

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago