@cpp.js/package-zlib 1.0.0-beta.21 → 1.0.0-beta.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @cpp.js/package-zlib
2
+ **Precompiled zlib library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.**
3
+
4
+ <a href="https://www.npmjs.com/package/@cpp.js/package-zlib">
5
+ <img alt="NPM version" src="https://img.shields.io/npm/v/@cpp.js/package-zlib?style=for-the-badge" />
6
+ </a>
7
+ <a href="https://github.com/bugra9/cpp.js/blob/main/LICENSE">
8
+ <img alt="License" src="https://img.shields.io/github/license/bugra9/cpp.js?style=for-the-badge" />
9
+ </a>
10
+
11
+ ## Integration
12
+ Start by installing these package with the following command:
13
+
14
+ ```sh
15
+ npm install @cpp.js/package-zlib
16
+ ```
17
+
18
+ To enable the library, modify the cppjs.config.js file as shown below.
19
+ ```diff
20
+ +import zlib from '@cpp.js/package-zlib/cppjs.config.js';
21
+
22
+ export default {
23
+ dependencies: [
24
+ + zlib
25
+ ]
26
+ paths: {
27
+ config: import.meta.url,
28
+ }
29
+ };
30
+ ```
31
+
32
+ ## Usage
33
+ Below are the steps to use the Simple Matrix Multiplier in your C++ or JavaScript code.
34
+
35
+ ### Usage in C++ Code
36
+ ```diff
37
+ +#include <zlib.h>
38
+
39
+ std::string Native::sample() {
40
+ + return std::string(zlibVersion());
41
+ }
42
+ ```
43
+
44
+ ## License
45
+ This project includes the precompiled zlib library, which is distributed under the [zlib License](https://zlib.net/zlib_license.html).
46
+
47
+ Zlib Homepage: <https://zlib.net/>
@@ -5,8 +5,8 @@ Pod::Spec.new do |s|
5
5
  s.module_name = "z"
6
6
  s.name = package["name"]
7
7
  s.version = package["nativeVersion"]
8
- s.summary = package["description"]
9
- s.homepage = package["homepage"]
8
+ s.summary = "A Massively Spiffy Yet Delicately Unobtrusive Compression Library"
9
+ s.homepage = "https://www.zlib.net/"
10
10
  s.author = "ZLIB Authors"
11
11
  s.source = { :http => "https://cpp.js.org" }
12
12
  s.vendored_frameworks = 'z.xcframework'
package/package.json CHANGED
@@ -1,14 +1,23 @@
1
1
  {
2
2
  "name": "@cpp.js/package-zlib",
3
- "version": "1.0.0-beta.21",
3
+ "version": "1.0.0-beta.23",
4
4
  "nativeVersion": "1.3.1",
5
- "description": "A Massively Spiffy Yet Delicately Unobtrusive Compression Library",
6
- "homepage": "https://www.zlib.net/",
7
- "license": "SEE LICENSE IN https://www.zlib.net/zlib_license.html",
5
+ "description": "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 and cross-platform compatibility. Ideal for use in web and mobile applications.",
6
+ "homepage": "https://github.com/bugra9/cpp.js/tree/main/packages/cppjs-package-zlib#readme",
7
+ "repository": "https://github.com/bugra9/cpp.js.git",
8
+ "license": "Zlib",
8
9
  "type": "module",
9
10
  "devDependencies": {
10
11
  "cpp.js": "1.0.0-beta.26"
11
12
  },
13
+ "keywords": [
14
+ "z",
15
+ "zlib",
16
+ "libz",
17
+ "cpp.js-package",
18
+ "webassembly",
19
+ "react-native"
20
+ ],
12
21
  "scripts": {
13
22
  "build": "cppjs build",
14
23
  "build:wasm": "cppjs build -p WebAssembly",