@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 ADDED
@@ -0,0 +1,5 @@
1
+ # @zerofs/ffi-darwin-x64
2
+
3
+ Prebuilt ZeroFS native library for `darwin-x64`. Installed automatically as an
4
+ optional dependency of the [`zerofs-client`](https://www.npmjs.com/package/zerofs-client)
5
+ package. You should not depend on this package directly.
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ /** Absolute filesystem path to this package's bundled ZeroFS cdylib. */
2
+ export declare const libraryPath: string;
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
+ }