Standardize process

This commit is contained in:
Jessica Lord 2015-08-28 21:47:31 -07:00
parent 91150839be
commit a5969fd076

View file

@ -1,13 +1,18 @@
# Process object # Process
The `process` object in Electron has the following differences from the one in The `process` object in Electron has the following differences from the one in
upstream node: upstream node:
* `process.type` String - Process's type, can be `browser` (i.e. main process) or `renderer`. * `process.type` String - Process's type, can be `browser` (i.e. main process)
or `renderer`.
* `process.versions['electron']` String - Version of Electron. * `process.versions['electron']` String - Version of Electron.
* `process.versions['chrome']` String - Version of Chromium. * `process.versions['chrome']` String - Version of Chromium.
* `process.resourcesPath` String - Path to JavaScript source code. * `process.resourcesPath` String - Path to JavaScript source code.
## process.hang # Methods
The `process` object has the following method:
### `process.hang`
Causes the main thread of the current process hang. Causes the main thread of the current process hang.