0.2.4 • Published 5 years ago

mini-webview v0.2.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

mini webview

A Node JS webview binding based on zserge webview.

It uses Cocoa/WebKit on macOS, gtk-webkit2 on Linux and MSHTML (IE10/11) on Windows.

Quick start

Thq quickest way to get started is to install the executable to a Node Js project using npm:

$ npm install mini-webview --save

Import the module and start using it

const {WebView} = require('mini-webview');

const browser = WebView({
    title: 'Minimal webview  title',
    url: `https://en.m.wikipedia.org/wiki/Main_Page`,
    height: 600,
    width: 800,
});

browser.show() //show the browser window

then run the node app.

Example

To view a quick example, clone the Webview repo and install the dependencies.

$ git clone https://github.com/mimidotsuser/webview.git
$ cd webview
$ npm install

Then run the demo example located in test folder

$ npm run demo

Build

Linux
  • Node > Version 8
  • You need node-gyp, which requires Python 2.x
  • A C/C++ compiler toolchain like GCC. -Yarn or NPM to install the dependencies.

Run yarn or npm install inside the root project folder. post-install command will rebuild the project.

Windows
Linux

Notes

The package has only been tested on Linux running Node Js >Version 8.

License

MIT License.