From: Jessica Lord Date: Sat, 29 Aug 2015 05:46:31 +0000 (-0700) Subject: Standardize synopsis X-Git-Tag: v0.31.2~2^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e8a04981bbafd2ed707b1cc3be168d1f9762d128;p=electron.git Standardize synopsis --- diff --git a/docs/api/synopsis.md b/docs/api/synopsis.md index 10daf2b6..4634151b 100644 --- a/docs/api/synopsis.md +++ b/docs/api/synopsis.md @@ -1,18 +1,22 @@ # Synopsis -All of [node.js's built-in modules](http://nodejs.org/api/) are available in -Electron, and third-party node modules are fully supported too (including the -[native modules](../tutorial/using-native-node-modules.md)). +All of [Node.js's built-in modules](http://nodejs.org/api/) are available in +Electron and third-party node modules also fully supported as well (including +the [native modules](../tutorial/using-native-node-modules.md)). Electron also provides some extra built-in modules for developing native desktop applications. Some modules are only available on the main process, some -are only available on the renderer process, and some can be used on both processes. -The basic rule is: if a module is GUI or low-level system related, then it should -be only available on the main process. You need to be familiar with the concept of +are only available on the renderer process (web page), and some can be used on +both processes. + +The basic rule is: if a module is +[GUI](https://en.wikipedia.org/wiki/Graphical_user_interface) or low-level +system related, then it should be only available on the main process. You need +to be familiar with the concept of [main process vs. renderer process](../tutorial/quick-start.md#the-main-process) scripts to be able to use those modules. -The main process script is just like a normal `node.js` script: +The main process script is just like a normal Node.js script: ```javascript var app = require('app'); @@ -26,7 +30,7 @@ app.on('ready', function() { }); ``` -The web page is no different than a normal web page, except for the extra +The render process is no different than a normal web page, except for the extra ability to use node modules: ```html