@doki-land/nifty-win32-x64 0.0.2 → 0.0.3
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 +12 -0
- package/index.js +14 -14
- package/lib/.gitkeep +0 -0
- package/lib/nifty-win32-x64-msvc.node +0 -0
- package/package.json +9 -9
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @doki-land/nifty-win32-x64
|
|
2
|
+
|
|
3
|
+
Prebuilt Node-API native addon for **Windows x64 (MSVC)**.
|
|
4
|
+
|
|
5
|
+
This package is installed automatically as an optional dependency of [`@doki-land/nifty`](https://www.npmjs.com/package/@doki-land/nifty). You normally do not install it directly.
|
|
6
|
+
|
|
7
|
+
- [Main package](https://www.npmjs.com/package/@doki-land/nifty)
|
|
8
|
+
- [Source](https://github.com/oovm/npm-tools/tree/dev/projects/packages/nifty-win32-x64)
|
|
9
|
+
|
|
10
|
+
## License
|
|
11
|
+
|
|
12
|
+
[MPL-2.0](https://www.npmjs.com/package/@doki-land/nifty-win32-x64?activeTab=code)
|
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
import { readdirSync } from "node:fs";
|
|
3
|
-
import { dirname, join } from "node:path";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
|
|
6
|
-
const require = createRequire(import.meta.url);
|
|
7
|
-
const libDir = join(dirname(fileURLToPath(import.meta.url)), "lib");
|
|
8
|
-
const nodeName = readdirSync(libDir).find((name) => name.endsWith(".node"));
|
|
9
|
-
if (!nodeName) {
|
|
10
|
-
throw new Error(`Missing .node binary in ${libDir}. Run npm run build:napi from the repo root.`);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const binding = require(join(libDir, nodeName));
|
|
14
|
-
export default binding;
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { readdirSync } from "node:fs";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
const libDir = join(dirname(fileURLToPath(import.meta.url)), "lib");
|
|
8
|
+
const nodeName = readdirSync(libDir).find((name) => name.endsWith(".node"));
|
|
9
|
+
if (!nodeName) {
|
|
10
|
+
throw new Error(`Missing .node binary in ${libDir}. Run npm run build:napi from the repo root.`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const binding = require(join(libDir, nodeName));
|
|
14
|
+
export default binding;
|
package/lib/.gitkeep
ADDED
|
File without changes
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
2
|
+
"cpu": [
|
|
3
|
+
"x64"
|
|
4
|
+
],
|
|
4
5
|
"description": "Nifty Node-API binary for Windows x64 (MSVC)",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MPL-2.0",
|
|
7
|
-
"main": "./index.js",
|
|
8
6
|
"files": [
|
|
9
7
|
"index.js",
|
|
10
8
|
"lib"
|
|
11
9
|
],
|
|
10
|
+
"license": "MPL-2.0",
|
|
11
|
+
"main": "./index.js",
|
|
12
|
+
"name": "@doki-land/nifty-win32-x64",
|
|
12
13
|
"os": [
|
|
13
14
|
"win32"
|
|
14
15
|
],
|
|
15
|
-
"cpu": [
|
|
16
|
-
"x64"
|
|
17
|
-
],
|
|
18
16
|
"publishConfig": {
|
|
19
17
|
"access": "public"
|
|
20
18
|
},
|
|
21
19
|
"repository": {
|
|
22
20
|
"type": "git",
|
|
23
21
|
"url": "git+https://github.com/oovm/npm-tools.git"
|
|
24
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"type": "module",
|
|
24
|
+
"version": "0.0.3"
|
|
25
25
|
}
|