@ohos-ports/node-rs-crc32-openharmony-arm64 1.10.8-beta.1 → 1.10.8-beta.2
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 +17 -2
- package/crc32.openharmony-arm64.node +0 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
# `@node-rs
|
|
1
|
+
# `@ohos-ports/node-rs-crc32-openharmony-arm64`
|
|
2
2
|
|
|
3
|
-
This is the **
|
|
3
|
+
This is the **OpenHarmony arm64** binary port of [`@node-rs/crc32`](https://github.com/napi-rs/node-rs) (upstream version `1.10.8`).
|
|
4
|
+
|
|
5
|
+
- Compiled from source (crate `node-rs-crc32` at tag `@node-rs/crc32@1.10.8`, commit `56c64a1f875d9568b0a6a79b6c658ce5996d25a2`) with Rust target `aarch64-unknown-linux-ohos`
|
|
6
|
+
- Contains a signed ELF `crc32.openharmony-arm64.node` (HarmonyOS musl compatible, NEEDED: libc.so only)
|
|
7
|
+
- Runtime: HarmonyOS (OpenHarmony) on arm64, Node.js >= 10
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
const { crc32, crc32c } = require('@ohos-ports/node-rs-crc32-openharmony-arm64')
|
|
13
|
+
|
|
14
|
+
crc32(Buffer.from('123456789')) // 3421780262
|
|
15
|
+
crc32c(Buffer.from('123456789')) // 3808858755
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
License: MIT (originally by LongYinan, ported by ohos-ports).
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/node-rs-crc32-openharmony-arm64",
|
|
3
|
-
"version": "1.10.8-beta.
|
|
3
|
+
"version": "1.10.8-beta.2",
|
|
4
4
|
"cpu": [
|
|
5
5
|
"arm64"
|
|
6
6
|
],
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/
|
|
28
|
+
"url": "git+https://github.com/ohos-ports/ohos-ports.git",
|
|
29
|
+
"directory": "ports/node-rs-crc32-openharmony-arm64/1.10.8"
|
|
29
30
|
},
|
|
30
31
|
"bugs": {
|
|
31
|
-
"url": "https://github.com/
|
|
32
|
+
"url": "https://github.com/ohos-ports/ohos-ports/issues"
|
|
32
33
|
},
|
|
33
34
|
"publishConfig": {
|
|
34
35
|
"registry": "https://registry.npmjs.org/",
|