Skip to content

Changes related to node

rogerwang edited this page Jan 22, 2013 · 16 revisions

This document is still under construction

console

Since node-webkit is not a console app, console.log is now redirected to Webkit's console. So you can see it in devtools.

process

  • process.versions['node-webkit'] is set with node-webkit's version.
  • process.mainModule is set for start page (index.html). When node-main is specified in the manifest, process.mainModule points to node-main.

global

The following names are inserted to the global object in Node's context:

  • require - this is the require() function within the main module.
Clone this wiki locally