repl-docs: move file to tutorials
also add note for renderer processes.
This commit is contained in:
parent
002b9b5d4b
commit
a938859eb8
2 changed files with 5 additions and 2 deletions
24
docs/tutorial/repl.md
Normal file
24
docs/tutorial/repl.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# REPL
|
||||
|
||||
Read-Eval-Print-Loop (REPL) is a simple, interactive computer programming
|
||||
environment that takes single user inputs (i.e. single expressions), evaluates
|
||||
them, and returns the result to the user.
|
||||
|
||||
The `repl` module provides a REPL implementation that can be accessed using:
|
||||
|
||||
* Assuming you have `electron` or `electron-prebuilt` installed as a local
|
||||
project dependency:
|
||||
|
||||
```sh
|
||||
./node_modules/.bin/electron --interactive
|
||||
```
|
||||
* Assuming you have `electron` or `electron-prebuilt` installed globally:
|
||||
|
||||
```sh
|
||||
electron --interactive
|
||||
```
|
||||
|
||||
Note: This only creates a REPL for the main process. You can use the Console
|
||||
tab of the Dev Tools to get a REPL for the renderer processes.
|
||||
|
||||
More info here: https://github.com/nodejs/node/blob/master/doc/api/repl.md
|
Loading…
Add table
Add a link
Reference in a new issue