@indutny/inflate

1.0.5 • Public • Published

@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.

Readme

Keywords

Package Sidebar

Install

npm i @indutny/inflate

Weekly Downloads

8

Version

1.0.5

License

MIT

Unpacked Size

14.5 kB

Total Files

6

Last publish

Collaborators

  • indutny