@react-pdf/zlib

2.0.0 • Public • Published

@react-pdf/zlib

Emulates Node's zlib module for the browser.

This package is a port of browserify-zlib, but containing just the deflate bindings needed for react-pdf. It also uses the last pako version.

zlib.deflateSync

Compresses a chunk of data with Deflate.

zlib.deflateSync(buffer)

Return Value: It returns the chunk of data with deflate.

zlib.createDeflate

Creates and returns a new Deflate object.

zlib.createDeflate()

Return Value: Delfate instance (Transform stream)

Readme

Keywords

none

Package Sidebar

Install

npm i @react-pdf/zlib

Weekly Downloads

188

Version

2.0.0

License

MIT

Unpacked Size

8.35 kB

Total Files

6

Last publish

Collaborators

  • diegomura