English | 中文(简体) |
!! 警告 !!
这份中文内容已经长时间没有进行维护,请以英文版为准 维护一项真正意义的开源项目真的很困难,需要很多精力,尤其是失去初期那种兴趣之后
一个webview的Node.js绑定。 webview 是一个小巧、跨平台的网页视图库,使用WebKit和Edge,可用以构建现代跨平台桌面软件。
npm i webview-nodejs
const { Webview } = require('webview-nodejs');
let w = new Webview();
w.title("Hello World");
w.size(800,600);
w.navigate("https://example.com");
w.show();
教程有更详细的步骤和例子(例如在Node.js和webview间交互)。
内置:
通过指定动态库位置 libPath
,也可支持其他平台。OSX未经测试。
我们欢迎并感谢任何建议、Issue、讨论、Pull Request和其他贡献。
项目 | 许可 |
---|---|
webview | MIT |
koffi | MIT |
Microsoft Webview2 | BSD-style |
本项目的灵感来自 webview_deno
Copyright 2022-2023 Winterreisender and other contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.