Read-eval-print-loop
Special functions
The REPL provides several functions in the global scope:
--eval
flag allows you to run some code in the runtime before you are dropped
into the REPL. This is useful for importing some code you commonly use in the
REPL, or modifying the runtime in some way:
--eval-file
flag
Files can be specified as paths or URLs. URL files are cached and can be
reloaded via the --reload
flag.
If is also specified, then --eval-file
files are run before the
--eval
code.
Tab completions are crucial feature for quick navigation in REPL. After hitting
tab
key, Deno will now show a list of all possible completions.