Aller au contenu principal


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.

Processus principal

Electron exposes the Node.js repl module through the --interactive CLI flag. Assuming you have electron installed as a local project dependency, you should be able to access the REPL with the following command:

./node_modules/.bin/electron --interactive

Note: electron --interactive is not available on Windows (see electron/electron#5776 for more details).

Processus de rendu

You can use the DevTools Console tab to get a REPL for any renderer process. Pour en savoir plus, lisez la documentation Chrome.