From e65cc8a2450e8abb660b8e50e73cf314e55cc48b Mon Sep 17 00:00:00 2001 From: liuderchi Date: Wed, 4 Jan 2017 16:11:45 +0800 Subject: [PATCH] [ci skip] :memo: copy repl.md source --- docs-translations/zh-TW/tutorial/repl.md | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs-translations/zh-TW/tutorial/repl.md diff --git a/docs-translations/zh-TW/tutorial/repl.md b/docs-translations/zh-TW/tutorial/repl.md new file mode 100644 index 0000000000..4f37c3a625 --- /dev/null +++ b/docs-translations/zh-TW/tutorial/repl.md @@ -0,0 +1,26 @@ +# 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 + ``` + +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. + +**Note:** `electron --interactive` is not available on Windows. + +More information can be found in the [Node.js REPL docs](https://nodejs.org/dist/latest/docs/api/repl.html).