@zerofs/ffi-darwin-x64 0.1.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 +5 -0
- package/index.d.ts +2 -0
- package/index.js +10 -0
- package/libzerofs_ffi.dylib +0 -0
- package/package.json +33 -0
package/README.md
ADDED
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Per-platform native package: ships exactly one prebuilt cdylib and exports
|
|
2
|
+
// the absolute path to it. The main `zerofs-client` package's loader `require()`s this
|
|
3
|
+
// and hands `libraryPath` to the generator's `load(libraryPath)`.
|
|
4
|
+
//
|
|
5
|
+
// assemble.sh substitutes the cdylib filename below at publish time:
|
|
6
|
+
// libzerofs_ffi.so (Linux) or libzerofs_ffi.dylib (macOS). The placeholder
|
|
7
|
+
// token is the URL argument, nowhere else.
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
|
|
10
|
+
export const libraryPath = fileURLToPath(new URL("./libzerofs_ffi.dylib", import.meta.url));
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zerofs/ffi-darwin-x64",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Prebuilt ZeroFS native library (cdylib) for darwin-x64. Installed automatically as an optional dependency of the `zerofs-client` package; not meant to be used directly.",
|
|
5
|
+
"license": "AGPL-3.0",
|
|
6
|
+
"homepage": "https://github.com/Barre/ZeroFS",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Barre/ZeroFS.git",
|
|
10
|
+
"directory": "zerofs/zerofs-ffi/bindings/typescript"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./index.js",
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"import": "./index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"index.js",
|
|
23
|
+
"index.d.ts",
|
|
24
|
+
"libzerofs_ffi.dylib",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"os": [
|
|
28
|
+
"darwin"
|
|
29
|
+
],
|
|
30
|
+
"cpu": [
|
|
31
|
+
"x64"
|
|
32
|
+
]
|
|
33
|
+
}
|