Files
electron/docs/tutorial/repl.md
Amitoj 00376c1d59 add note about windows
note "REPL is not available on Windows."
2016-10-04 19:32:46 +05:30

805 B

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:

    ./node_modules/.bin/electron --interactive
    
  • Assuming you have electron or electron-prebuilt installed globally:

    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: REPL is not available on Windows.

More info here: https://github.com/nodejs/node/blob/master/doc/api/repl.md