Skip to content
zcbenz edited this page Nov 3, 2012 · 26 revisions

App API requires node-webkit >= v0.3.1

Synopsis

// Load native UI library
var gui = require('nw.gui');

// Print arguments
console.log(gui.App.argv);

// Quit current app
gui.App.quit();

Reference

argv

Get the command line arguments when starting the app.

quit()

Quit current app.

Clone this wiki locally