package
This package wraps https://github.com/suchipi/webview so it can be distributed on npm and run from node.
npm install webviewGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 2 packages.
31.0 MB
Includes dependencies.
webviewThis package wraps https://github.com/suchipi/webview so it can be distributed on npm and run from node.
As a global CLI application:
npm i -g webviewAs a node module:
npm i --save webviewwebview
webview -d ./public --title "My Site"
webview --url http://google.com --width 1024 --height 768
webview --helpvar webview = require("@suchipi/webview");
// webview is an object with this shape:
// {
// binaryPath: string, // The absolute path to the binary for your platform
// optionsToArgv: Function, // Convert an options object to the appropriate argv to pass to the binary
// spawn: Function, // use child_process.spawn to run the binary
// spawnSync: Function, // use child_process.spawnSync to run the binary
// exec: Function, // use child_process.execFile to run the binary
// execSync: Function, // use child_process.execFileSync to run the binary
// }
// You can either use webview.binaryPath and webview.optionsToArgv to spawn it yourself:
var child = require("child_process").spawn(
webview.binaryPath,
optionsToArgv({
title: "My App",
width: 1024,
height: 768,
dir: