New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

webview-native

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webview-native

Native webview bindings for Node.js

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

const WebView = require("webview-native");
const webview = new WebView({
    title: "Hello World",
    content: `
    <!DOCTYPE html>
    <html>
        <head>
            <style>
                * {
                    margin: 0;
                    padding: 0;
                }

                body {
                    background-color: #2e2e2e;
                    color: #ffffff;
                    text-align: center;
                }
            </style>
        </head>
        <body>
            <h1>Hello from webview-native</h1>
            <button onclick="external.invoke('closeWindow')">Close Window</button>
            <script>
                alert("Hello World");
            </script>
        </body>
    </html>
    `
});

webview.createWindow();

Preview

Keywords

webview

FAQs

Package last updated on 27 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts