This package provides the precompiled zlib library, built using cpp.js, for easy integration into JavaScript, WebAssembly and React Native projects. It offers compression and decompression functionalities through the zlib API, ensuring high performance an
npm install @cpp.js/package-zlib-ios-multithread``sh`
npm install @cpp.js/package-zlib
To enable the library, modify the cppjs.config.js file as shown below.
`diff
+import zlib from '@cpp.js/package-zlib/cppjs.config.js';
export default {
dependencies: [
+ zlib
]
paths: {
config: import.meta.url,
}
};
`
diff
+#include std::string Native::sample() {
+ return std::string(zlibVersion());
}
``Zlib Homepage: https://zlib.net/