Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Available commands in node.js REPL

Node.js REPL

Special REPL commands:

  • .break/<ctrl>C: breaks multi-line expressions
  • .clear: resets the context
  • .exit/<ctrl>D: close the I/O stream; causes the REPL to exit
  • .help: show this list of special commands
  • .save: save the current REPL session
  • .load: load a file int the current REPL session
  • tab: show both global and local scope variables

source: https://nodejs.org/api/repl.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment