@spader/node-whisper-cpp-arm64-darwin-metal 0.0.1
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/bins/.gitkeep +0 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +13 -0
- package/package.json +34 -0
package/bins/.gitkeep
ADDED
|
File without changes
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
5
|
+
const packageRoot = join(__dirname, "..");
|
|
6
|
+
const binsDir = join(packageRoot, "bins");
|
|
7
|
+
const packageVersion = JSON.parse(readFileSync(join(packageRoot, "package.json"), "utf8")).version;
|
|
8
|
+
export function getBinsDir() {
|
|
9
|
+
return {
|
|
10
|
+
binsDir,
|
|
11
|
+
packageVersion,
|
|
12
|
+
};
|
|
13
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spader/node-whisper-cpp-arm64-darwin-metal",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Prebuilt @spader/node-whisper-cpp binary for macOS arm64 with Metal",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/",
|
|
17
|
+
"bins/",
|
|
18
|
+
"package.json"
|
|
19
|
+
],
|
|
20
|
+
"os": [
|
|
21
|
+
"darwin"
|
|
22
|
+
],
|
|
23
|
+
"cpu": [
|
|
24
|
+
"arm64"
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/tspader/node-whisper-cpp"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
}
|
|
34
|
+
}
|