webview-napi 0.1.5
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/LICENSE +21 -0
- package/README.md +137 -0
- package/bindings.linux-x64-gnu.node +0 -0
- package/index.d.ts +1596 -0
- package/index.js +629 -0
- package/package.json +104 -0
- package/webview.linux-x64-gnu.node +0 -0
package/package.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webview-napi",
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"description": "Robust cross-platform webview library for Node.js written in Rust. It also works with deno and bun.",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"repository": "https://github.com/nglmercer/webview-napi",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"webview",
|
|
12
|
+
"node",
|
|
13
|
+
"rust",
|
|
14
|
+
"cross-platform",
|
|
15
|
+
"gui"
|
|
16
|
+
],
|
|
17
|
+
"files": [
|
|
18
|
+
"README.md",
|
|
19
|
+
"index.d.ts",
|
|
20
|
+
"index.js",
|
|
21
|
+
"*.node"
|
|
22
|
+
],
|
|
23
|
+
"napi": {
|
|
24
|
+
"binaryName": "webview",
|
|
25
|
+
"targets": [
|
|
26
|
+
"x86_64-pc-windows-msvc",
|
|
27
|
+
"i686-pc-windows-msvc",
|
|
28
|
+
"aarch64-pc-windows-msvc",
|
|
29
|
+
"x86_64-apple-darwin",
|
|
30
|
+
"aarch64-apple-darwin",
|
|
31
|
+
"x86_64-unknown-linux-gnu",
|
|
32
|
+
"i686-unknown-linux-gnu",
|
|
33
|
+
"aarch64-unknown-linux-gnu",
|
|
34
|
+
"armv7-unknown-linux-gnueabihf",
|
|
35
|
+
"aarch64-linux-android",
|
|
36
|
+
"armv7-linux-androideabi",
|
|
37
|
+
"x86_64-unknown-freebsd"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">= 24"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"registry": "https://registry.npmjs.org/",
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"artifacts": "napi artifacts",
|
|
49
|
+
"build": "napi build --platform --release",
|
|
50
|
+
"build:debug": "napi build --platform",
|
|
51
|
+
"build:all": "napi build --release",
|
|
52
|
+
"build:prebuilds": "napi build --platform --release --strip",
|
|
53
|
+
"clean": "napi clean && cargo clean",
|
|
54
|
+
"format": "run-p format:prettier format:rs",
|
|
55
|
+
"format:prettier": "prettier . -w",
|
|
56
|
+
"format:rs": "cargo fmt",
|
|
57
|
+
"lint": "oxlint .",
|
|
58
|
+
"lint:fix": "oxlint --fix .",
|
|
59
|
+
"test": "bun test __test__/",
|
|
60
|
+
"test:watch": "bun test --watch __test__/",
|
|
61
|
+
"version": "napi version",
|
|
62
|
+
"check": "cargo check",
|
|
63
|
+
"clippy": "cargo clippy -- -D warnings",
|
|
64
|
+
"docs": "cargo doc --no-deps --open",
|
|
65
|
+
"update": "bun update",
|
|
66
|
+
"setup": "bash ./scripts/install-linux-deps.sh"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@napi-rs/cli": "^3.5.1",
|
|
70
|
+
"@swc-node/register": "^1.11.1",
|
|
71
|
+
"@swc/core": "^1.15.8",
|
|
72
|
+
"@types/bun": "^1.3.6",
|
|
73
|
+
"@types/node": "^25.0.3",
|
|
74
|
+
"ava": "^6.4.1",
|
|
75
|
+
"chalk": "^5.6.2",
|
|
76
|
+
"husky": "^9.1.7",
|
|
77
|
+
"lint-staged": "^15.5.2",
|
|
78
|
+
"nodeia": "^0.0.1",
|
|
79
|
+
"npm-run-all2": "^7.0.2",
|
|
80
|
+
"oxlint": "^0.13.2",
|
|
81
|
+
"prettier": "^3.7.4",
|
|
82
|
+
"tinybench": "^2.9.0",
|
|
83
|
+
"typescript": "^5.9.3"
|
|
84
|
+
},
|
|
85
|
+
"lint-staged": {
|
|
86
|
+
"*.@(js|ts|tsx)": [
|
|
87
|
+
"oxlint --fix"
|
|
88
|
+
],
|
|
89
|
+
"*.@(js|ts|tsx|yml|yaml|md|json)": [
|
|
90
|
+
"prettier --write"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"prettier": {
|
|
94
|
+
"printWidth": 120,
|
|
95
|
+
"semi": true,
|
|
96
|
+
"trailingComma": "all",
|
|
97
|
+
"singleQuote": true,
|
|
98
|
+
"arrowParens": "always",
|
|
99
|
+
"endOfLine": "lf",
|
|
100
|
+
"tabWidth": 2,
|
|
101
|
+
"useTabs": false
|
|
102
|
+
},
|
|
103
|
+
"packageManager": "bun@1.3.5"
|
|
104
|
+
}
|
|
Binary file
|