May 25, 2021 Electron
Read(Read)-Eval-Output (Print)-Loop (REPL) is a simple, interactive computer programming environment that uses a single user input, operations, and returns results to the user.
Here
repl
module provides an implementation of rePL that can be used as this:
If your
electron
electron-prebuilt
already installed as a local project dependency:
./node_modules/.bin/electron --interactive
If your
electron
electron-prebuilt
already installed globally:
electron --interactive
Only one REPL will be created for the main process here. You can use Dev Tools' Console tab to get a REPL for the renderer process.
Note:
electron --interactive
not available on Windows.
More can be found here at node.js REPL docs .