@spader/node-whisper-cpp-x64-linux-cpu-gnu 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 ADDED
File without changes
@@ -0,0 +1,4 @@
1
+ export declare function getBinsDir(): {
2
+ binsDir: string;
3
+ packageVersion: string;
4
+ };
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,37 @@
1
+ {
2
+ "name": "@spader/node-whisper-cpp-x64-linux-cpu-gnu",
3
+ "version": "0.0.1",
4
+ "description": "Prebuilt @spader/node-whisper-cpp binary for Linux x64 CPU glibc",
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
+ "linux"
22
+ ],
23
+ "cpu": [
24
+ "x64"
25
+ ],
26
+ "libc": [
27
+ "glibc"
28
+ ],
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/tspader/node-whisper-cpp"
32
+ },
33
+ "license": "MIT",
34
+ "publishConfig": {
35
+ "access": "public"
36
+ }
37
+ }