How to use the node-gtk.require function in node-gtk

To help you get started, we’ve selected a few node-gtk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github codejamninja / react-gtk / packages / binding / src / gtk.ts View on Github external
function getGtk(version = '3.0') {
  const Gtk = nodeGtk.require('Gtk', version);
  if (!initialized) {
    initialized = true;
    nodeGtk.startLoop();
    Gtk.init();
  }
  return Gtk;
}

node-gtk

GNOME Gtk+ bindings for NodeJS

MIT
Latest version published 4 months ago

Package Health Score

65 / 100
Full package analysis