webview-native
Native webview bindings for Node.js
Installing webview-native
Installing webview-native requires a supported version of Node and Rust.
You can install the project with npm. In the project directory, run:
$ npm install webview-native
This fully installs the project, including installing any dependencies and running the build.
Quick Example
Hello from webview-native
` }); webview.createWindow(); ">const WebView = require("webview-native");
const webview = new WebView({
title: "Hello World",
content: `
* {
margin: 0;
padding: 0;
}
body {
background-color: #2e2e2e;
color: #ffffff;
text-align: center;
}
Hello from webview-native
alert("Hello World");
`
});
webview.createWindow();