The Deno REPL is a tool for prototyping and trying out new things. With Deno 1.21, an
-–eval-file flag can be used with the
deno repl subcommand. This flag allows for passing of a list of paths or URLs to files that will be executed before the REPL starts and is useful for building custom, specialized REPLs. Also, type checking has been disabled for imported modules in the REPL, leading to faster imports. And the REPL now has a global
clear() function that acts as an alias for
console.clear. This aligns with what is found in REPLs in many browsers, Deno’s developers said.