1.0.9 • Published 5 years ago
thecoder08-gui v1.0.9
GUI
What is GUI?
GUI is a library that lets you create cross-platform GUI apps with web technologies. Electron but uses less RAM. There also is no node integration.
Installation
Run the command
npm i thecoder08-gui
to install GUI.
Require
Require with this code:
var gui = require('thecoder08-gui');
Syntax
gui.win(url, size);
to create a window.
Where url
is a URL pointing to the content of the window.
Where size
is an object with properties height
and width
, the height and width of the window.
gui.menu(menu);
to create the top menu. This only works on MacOS.
Documentation for the menu
parameter is available here.
gui.tray(path, menu);
to create a tray app.
Where path
is a filepath to the icon for the app.
Where menu
is the menu for the app. It follows the same format as the top menu (see above).
gui.start();
to start the GUI message loop.
Demo
A demo can be found here.