zlib
v1.3.2Compressionzlib 1.3.2, dEFLATE compression, packaged by crossbind as @crossbind/port-zlib and one package per target. Only a variant that is actually on npm beta is listed as published.
Packages
| Target | Package | npm `beta` |
|---|---|---|
| Meta package | @crossbind/port-zlib | 2.0.0-beta.56 |
| Web and Node.js | @crossbind/port-zlib-wasm | 2.0.0-beta.56 |
| WASI library | @crossbind/port-zlib-wasi | 2.0.0-beta.56 |
| Android | @crossbind/port-zlib-android | 2.0.0-beta.56 |
| iOS | @crossbind/port-zlib-ios | 2.0.0-beta.56 |
Install
Install the variant for the platform you build, declare it as a dependency in crossbind.config.js and import the header from JavaScript. Nothing is compiled on your machine. A project that builds for several platforms lists one variant per platform: @crossbind/port-zlib-wasi, @crossbind/port-zlib-android, @crossbind/port-zlib-ios are published too.
Header import paths are relative to the package's dist/prebuilt/<target>/include, so @crossbind/port-zlib/<header>.h is upstream's own header. The full flow, including what the meta package is for, is in the Libraries guide.
Licence
- npm
licensefield of@crossbind/port-zlib:Zlib. - The licence files that ship with the package, and the port recipe, are in the port directory.
Facts on this page come from the port manifests in the repository and from what npm served on beta when the site was built. See the Libraries guide for the full consumer flow.