|
@@ -1,15 +1,15 @@
|
|
|
-# Technical differences to Node-Webkit
|
|
|
+# Technical differences to NW.js
|
|
|
|
|
|
-Like Node-Webkit, atom-shell provides a platform to write desktop applications
|
|
|
+Like NW.js, atom-shell provides a platform to write desktop applications
|
|
|
with JavaScript and HTML, and has Node integration to grant access to low level
|
|
|
system in web pages.
|
|
|
|
|
|
But there are also fundamental differences between the two projects that make
|
|
|
-atom-shell a completely separate product from Node-Webkit:
|
|
|
+atom-shell a completely separate product from NW.js:
|
|
|
|
|
|
**1. Entry of application**
|
|
|
|
|
|
-In Node-Webkit, the main entry of an application is a web page, you specify a
|
|
|
+In NW.js, the main entry of an application is a web page, you specify a
|
|
|
main page in the `package.json` and it would be opened in a browser window as
|
|
|
the application's main window.
|
|
|
|
|
@@ -32,16 +32,16 @@ need a powerful machine to build atom-shell.
|
|
|
|
|
|
**3. Node integration**
|
|
|
|
|
|
-In Node-Webkit, the Node integration in web pages requires patching Chromium to
|
|
|
+In NW.js, the Node integration in web pages requires patching Chromium to
|
|
|
work, while in atom-shell we chose a different way to integrate libuv loop to
|
|
|
each platform's message loop to avoid hacking Chromium, see the
|
|
|
[`node_bindings`](../../atom/common/) code for how that was done.
|
|
|
|
|
|
**4. Multi-context**
|
|
|
|
|
|
-If you are an experienced Node-Webkit user, you should be familiar with the
|
|
|
+If you are an experienced NW.js user, you should be familiar with the
|
|
|
concept of Node context and web context, these concepts were invented because
|
|
|
-of how the Node-Webkit was implemented.
|
|
|
+of how the NW.js was implemented.
|
|
|
|
|
|
By using the [multi-context](http://strongloop.com/strongblog/whats-new-node-js-v0-12-multiple-context-execution/)
|
|
|
feature of Node, atom-shell doesn't introduce a new JavaScript context in web
|