-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Changes related to node
Roger Wang edited this page May 7, 2013
·
16 revisions
This document is still under construction
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.versions['node-webkit']is set with node-webkit's version. -
process.mainModuleis set for start page (index.html). Whennode-mainis specified in the manifest,process.mainModulepoints tonode-main.
The following names are inserted to the global object in Node's context:
-
require- this is therequire()function within the main module.
"In any files included via webkit (using Window.open, xhr, $.getScript, etc), require is relative to the root of the app. For any files included via node.js (using require), require is relative to the included file." -- from issue#603